Class ResourceStateFileLoader
Load a state from any Resources folder within Unity (within any Package or Asset)
Implements
Namespace: IVLab.ABREngine
Assembly: IVLab.ABREngine.Runtime.dll
Syntax
public class ResourceStateFileLoader : IABRStateLoader
Constructors
| Improve this Doc View SourceResourceStateFileLoader()
Load a state from any Resources folder within Unity (within any Package or Asset)
Declaration
public ResourceStateFileLoader()
Methods
| Improve this Doc View SourceGetState(string)
Load a state based on some text (perhaps a JSON string, a file path, or URL)
Declaration
public JObject GetState(string fileName)
Parameters
Type | Name | Description |
---|---|---|
string | fileName |
Returns
Type | Description |
---|---|
JObject |
SaveState(string, string)
Save a serialized JSON state with a particular name
Declaration
public void SaveState(string name, string serializedState)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
string | serializedState |