Saving, and Loading

v4.0

To save the game, simply call:

SaveAndLoad.saveAndLoad.Save()

If you would like to load game data manually, or load the last saved data, call:

Load(saveGameId); // Specify a saveGameId to load from the Game List
SaveAndLoad.saveAndLoad.LoadLastGame(); // Loads the last saved game

The Save and Load module will automatically call Load() when a scene is loaded. You can have the script skip specific scenes by adding their names into the doNotLoadOnScenes list, in the Inspector.

The Party Based RPG demo game only calls Load() in the tiltle scene, to load a game from the game list, and LoadLastGame() to continue the last played game. Otherwise, Load() is not called manually.

Last updated