Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

How to Create Dynamic Multidimensional Array?

$
0
0
I need to create a 3D array that can be resized per-dimension. My first thought was to create a 1D array and "simulate" the 3D array (like `thing[(height*y)+x]` or whatever it is) but I don't believe that would allow for resizing. I googled it but all I could find was how to make static multidimensional arrays. How would I achieve this in JavaScript/UnityScript?

Viewing all articles
Browse latest Browse all 1875

Latest Images

Trending Articles



Latest Images