ESave
ESave Pro
ESave Pro
  • ESave Pro Documentation
  • Pro Comparison
  • đŸ•šī¸Getting Started
    • Installation
    • Demo
  • ESave Settings
  • 🧩Components
    • ESave Initializer
  • 📄Scripting
    • Initialization
    • Save Operation
    • Save States
      • Infinite Saves
        • Infinite Save Scripting
    • Saving & Loading Data
      • Saving
      • Loading
      • Custom Serializable Objects
      • Example Script
    • Data Deletion
  • đŸ› ī¸Support
    • Getting Help
  • 📚Changelogs
    • Latest Releases
  • ⭐Rate Me?
Powered by GitBook
On this page
  • Setup
  • What to Know
  • Create Save
  • Load
  • Save
  • Delete Save
  1. Getting Started

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:

  1. Navigate to Assets/StylishEsper/ESave/Examples.

  2. Double click Demo.unitypackage and click Import.

  3. Open the Demo folder and double click the Demo scene.

  4. Enter play mode.

What to Know

If you'd like to go straight into how saving and loading is scripted for the demo scene, open the SaveLoadExample.cs script which can be found in Assets/StylishEsper/ESave/Examples/Demo/Scripts.

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:

  1. The player character position.

  2. 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.

PreviousInstallationNextESave Settings

Last updated 2 months ago

This will also set the save as active, as the active save is simply the last one that was loaded. Learn more about active save states .

đŸ•šī¸
here