Class LocalPersistence
This saves data locally onto the user's device.
Implements
Inherited Members
Namespace: UnityEngine.GameFoundation.DataPersistence
Assembly: solution.dll
Syntax
public class LocalPersistence : BaseDataPersistence, IDataPersistence
Constructors
| Name | Description |
|---|---|
| LocalPersistence(string, IDataSerializer) |
Fields
| Name | Description |
|---|---|
| kBackupSuffix | Suffix used for the backup save file. |
Properties
| Name | Description |
|---|---|
| filename | The relative path from persistentDataPath to the save file. |
| fullpath | The absolute path to the save file. |
Methods
| Name | Description |
|---|---|
| Delete(Action, Action<Exception>) | Asynchronously delete data from the persistence layer. |
| Load(Action<GameFoundationSerializableData>, Action<Exception>) | Asynchronously loads GameFoundation's data from the persistence layer. |
| Save(GameFoundationSerializableData, Action, Action<Exception>) | Asynchronously saves GameFoundation's data onto the persistence layer. |