- Home /
2D array in java script docs
Hey everyone, I've heard in 3.2 js now supports 2dimensional arrays. which is most excellent. is there any docs on this? I haven't been able to find anything that doesn't mention that "this work flow will be obsolete once 3.2 is released" however i haven't been able to find info as to the correct way to create one. (unless I'm overlooking something completely obvious) in which case, this will be an easy answer ;)
Thanks in advance!
Answer by Mike 3 · Feb 17, 2011 at 02:51 PM
You just use it the same way as c#does:
var test = new int[5,5]; var test2 : int[,]; // for declaring without assigning
test[1,1] = 5; Debug.Log(test[1,1]);
Your answer
Follow this Question
Related Questions
Multidimensional GameObject Arrays 1 Answer
Trouble with 2D Array for board game 3 Answers
JavaScript multidimensional array editing 1 Answer
trouble with 2 dimensional arrrays in javascript 1 Answer
Sweeping trough a 2D Color array 2 Answers