Managing Data

Important notes about managing save data.

Loading the Save State

Save data is stored inside of Save States. So the first step to managing data is to load a save state. You will need a save state ID. See Save States for more information.

SaveState saveState = null;
ESave.Load(mySaveStateID).OnComplete(result =>
{
    saveState = result;
});

This method returns a Save Operation (result type: SaveState).

Save Confirmation

The ESave.Save method finalizes all changes made to a save state. It should not be called after every AddData or DeleteData operation. Instead, it should only be used when the game needs to save progress to a specific save state—typically when the player manually saves through the save menu by overwriting an existing save or creating a new one.

In other words, this method should be used minimally and only when necessary. See Save States for more information.

ESave.Save(saveState);

This method returns a Save Operation (result type: SaveState).

Last updated