static function Array (sizeArr : int) : Array
Description
Creates an Array of a fixed size.
var arr =
new Array(5);
Debug.Log(arr.length);
static function Array (arrObj : Object[]) : Array
Description
Initialize a JavaScript array from a .Net Array.
var intArray :
int[] =
new int[5];
var convertedArray : Array =
new Array(intArray);
for (
var i = 0; i < convertedArray.length; i++) {
Debug.Log(
"ConvertedArray[" +i +
"]: " + convertedArray[i]);
}
static function Array () : Array
Description
Creates an empty array
var arr = new Array ();
arr.Push ("Hello");
print(arr[0]);