such as,
var abc:int[,] = [[1,2,3]];
I have tried substituting the [ with { and ( in all combinations, but it seems none of them workd.
such as,
var abc:int[,] = [[1,2,3]];
I have tried substituting the [ with { and ( in all combinations, but it seems none of them workd.
Hi. A quick googlin’ provided this link in regards to JavaScript:
JavaScript: Multi-dimensional array
I use C# with Unity so I’m unsure if this technique is the best when working with Unity’s flavor of JS.
If you’d prefer C#, it’s pretty straightforward, from the MSDN Example:
int[,,] myArray = new int [4,2,3];
EDIT: Here is some info from the Unify Wiki on multidimensional arrays in JS.