Save Data
5_ScriptableSave
Last updated
5_ScriptableSave
Last updated
In the project window, locate the scriptable_save_example and select it.
There is a lot to see, but actually this is a new empty save file. Let's quickly check in the code what data we are actually saving to disk. Open the script ScriptableSaveExample.cs.
At the top of the file, we can see that our save data has a version number, a level, and a list of Items (which are defined just below). Note that these classes are marked [Serializable] in order to be able to convert them to JSON.
The SaveData class is the class you will customize for your game. Each game is different, so I've kept this example simple.