How can i save random-generated maps during gameplay ?
Hello everybody. I made a voxel world generator. How can i save the maps and later reload them during gameplay ? sorry for my bad English.
Answer by AurimasBlazulionis · Jan 11, 2017 at 07:15 PM
You need to use binary serialization. You will have to make some sort of naming scheme to save each chunk and then deserialize them once needed. Use a class which contains an array with the data of the chunk and then serialize that class. This is a good starting point (starts at 28:40). Or, you can take a look at Microsoft's example.
Your answer
Follow this Question
Related Questions
Problem with saving player data 0 Answers
Saving In Between Scenes and Program Exit 0 Answers
PlayerPrefs Not Saving When I Click the Button. 1 Answer
Problem With Unity Cloud Save (Google Play Services) 0 Answers
Get public static list 0 Answers