hiyas my code looks like:
public int[,,][] data;
public int worldX=16;
public int worldY=16;
public int worldZ=16;
void Start () {
[...]
int[,,][] data = new int[worldX,worldY,worldZ][];
for (int x=0; x<worldX; x++){
for (int z=0; z<worldZ; z++){
for (int y=0; y<worldY; y++){
if(y<=8){ data[x,y,z][0]=1; }
}
}
}
[...]
}
as you can see the first is the world position, I store in the second 10 Integer (int[9]) to save Variables for this point.
But unfortunately I can not get them to initialize in an elegant manner, is the only way to fill every slot (16x16x16x10) with zeros at start?