Saving
This section outlines the step-by-step process of saving data using ESave.
This only edits the save data in memory. See Writing Changes.
Each piece of data in a save file has an ID (string). This makes it possible to retrieve specific data by ID.
Saving data can be done with a single line with SaveFile.AddOrUpdateData
.
The first parameter is the ID of the data, and the second parameter is the data itself. Any serializable data type can be saved. However, most Unity types are not savable. ESave can save common Unity data types, including (but not limited to) Vector2
, Vector3
, Quaternion
, Color
, and Transform
.
Last updated