Skip to content

Instantly share code, notes, and snippets.

View acoppes's full-sized avatar

Ariel Coppes acoppes

View GitHub Profile
@grvgl
grvgl / Batch_Publisher.jsfl
Created June 4, 2015 10:36
JSFL file to publish multiple Flash files with single JSFL command
var tempDoc=undefined;
var searchSubDir="true"
if(fl.documents.length==0){
tempDoc=fl.createDocument();
}
var folder = getFolderURIFromUser();
exportlist=new Array();
if(folder){
if(folder.substr(0,8)!="file:///"){
folder="file:///"+folder.split(":").join("|").split("\\").join("/");
@elebetsamer
elebetsamer / Unity-ViewOrthographicCameraBounds
Last active May 5, 2021 19:27
View the bounds of an orthographic camera in Unity even if it isn't selected.
void OnDrawGizmos()
{
float verticalHeightSeen = Camera.main.orthographicSize * 2.0f;
float verticalWidthSeen = verticalHeightSeen * Camera.main.aspect;
Gizmos.color = Color.cyan;
Gizmos.DrawWireCube(transform.position, new Vector3(verticalWidthSeen, verticalHeightSeen, 0));
}