ES3.Save
Description
Saves the value to a file with the given key.
If the file already exists, the key will be added to the file.
If the key already exists in the file, the key will be overwritten in the file.
Parameters
key | The unique key we want to use to identity the data we are saving. |
value |
The value we want to save. |
T | [Optional] The type of the data we wish to save. Can be an inherited type. |
filePath |
[Optional] The relative or absolute path of the file we want to store our value to. |
settings |
[Optional] The settings we want to use to override the default settings. |
Examples
1 2 3 4 5 |
// Save the position of this GameObject. ES3.Save("myPosition", transform.position); // Load the position we saved and assign it to this GameObject. transform.position = ES3.Load("myPosition", Vector3.zero); |