Getting started

After importing Easy Save from the Asset Store, you can immediately use Easy Save from your scripts and from PlayMaker.

For information on saving and loading without code using Auto Save, see the Auto Save guide.

For information on PlayMaker actions available, see the PlayMaker Actions Overview.

Easy Save stores data as keys and values, much like a Dictionary.

For example, to save an integer to a key named myInt and load it back again, you could do:

If you’re unsure whether a key exists before loading, you can use ES3.KeyExists:

To load a value into an existing object, use ES3.LoadInto:

You can also save and load Arrays, Lists, Dictionaries, Queues, Stacks and HashSets in the same way as you would save and load any other data.

Array

List

Dictionary

2D Array

Queue

HashSet

Stack

For most projects it makes sense to load in Start(), and save in OnApplicationQuit(), or OnApplicationPause(true) on mobile.

You can also use buttons to save and load.

The filePath parameter lets you specify where data is saved. The file or folder will be automatically created if it does not exist.

This can be a filename, a relative path, or an absolute path. For more information, see the Paths and Locations guide.

Filename

Relative path

Absolute path

Delete a key

Delete a file

Delete a directory

Change default settings by going to Window > Easy Save 3 > Settings.

Enable settings at runtime by providing an ES3Settings object as a parameter. See the ES3Settings page for more information.

Enable encryption

Enable compression

To see what types are supported, see our Supported Types guide.