public byte[,,] data;
File.WriteAllBytes("Resources/Saves/World_data", data);
data holds x, y, z values that can be 0, 1, or 2. Apparently WriteAllBytes does not take a double or even a triple byte array. Only a single byte array. Does anyone have any ideas on how I can go about saving this data so I don't have to recreate it each time I run the script?
It'd save a lot of load time since using a Perlin Noise script to randomly generate the data actually makes it take longer. Especially when it's a big map.
How you go about doing this depends on whether or not your 3D array here is jagged. This would handle jagged 3D arrays: