- Home /
Question by
nicoolsen10 · Mar 28, 2020 at 09:14 PM ·
savesave datasaveloadsave game
How to make a list of saves and load them correctly
Hey how can i make for example 3 new game buttons where the player chooses one and when he saves it will save on save1 so he can load it with a load button so he can have 3 different saves and maybe choose save 2 and load that one? this is my script to save
private void SaveBySerialization()
{
Save save = createSaveGameObject();
BinaryFormatter bf = new BinaryFormatter();
FileStream fileStream = File.Create(Application.persistentDataPath + "/" + directory + "/" + fileName);
bf.Serialize(fileStream, save);
fileStream.Close();
}
Comment
Your answer
Follow this Question
Related Questions
Save Game Sceenes user quit aplication, Can I save the scene as a whole while leaving the game? 0 Answers
I want to save my level progress in my quiz game 1 Answer
Saving Melee Combat Template Pack (MY LAST PROBLEM) 1 Answer
Tell me how to open these files on android 0 Answers
I followed the Brackeys save tutorial and it won't work 0 Answers