Demo
Understanding the demo scene.
The demo scene simply uses Unity's starter assets with the functionality of saving and loading some data. This section does not include the infinite saves example scene. For the infinite saves example rundown, see Infinite Saves.
Setup
If you'd like to try the demo scene, follow these steps:
Navigate to
Assets/StylishEsper/ESave/Examples
.Double click
Demo.unitypackage
and clickImport
.Open the
Demo
folder and double click theDemo
scene.Enter play mode.
What to Know
The 4 buttons at the bottom-right are the only things that are relevant to ESave. You can use those buttons to perform saving and loading action.
There are only 2 things that are saved and loaded:
The player character position.
Some hard-coded text.
There are 4 buttons at the bottom-right of the screen. Each button will do something different.
Create Save
The Create Save button simply creates a save state if one does not exist. If a save state exists, nothing will happen.
Load
The Load button loads the save state if it exists. It performs a check to see if the position and text data exist. If so, the player character position will be set to the loaded value and the loaded text will be displayed in the console.
Save
The Save button saves the player's position in the save state and saves the hard-coded text in player settings. Player settings is essentially used to save and load data that should be available no matter which save state is loaded.
Delete Save
This deletes the created save state. Since the text is saved in player settings, it is not affected. This also unloads the active save state.
Last updated