I am looking for a way to combine a 2D array with a 3D array.
I have a function that returns a float[,] it gets populated with the width and height of my map. Now i am trying to do something like this:
float[,,] 3dArray = new float[amount, width, height];
for (int i = 0; i < amount; i++)
3dArray[i] = MethodReturningFloatArray[,];
So basically i want to populate the 2nd and 3th dimension of my 3D array with a 2D array generated by a method (float[,]).
Edited by menyo, 12 April 2014 - 04:56 AM.