Class SaveData
Obselete interface for saving player data.
Inherited Members
Namespace: Unity.Services.CloudSave
Assembly: Unity.Services.CloudSave.dll
Syntax
[Obsolete("The interface provided by SaveData has moved to CloudSaveService.Instance.Data, and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public static class SaveData
Methods
ForceDeleteAsync(string)
Obselete method for deleting saving player data.
Declaration
[Obsolete("The interface provided by SaveData.ForceDeleteAsync(string) has been replaced by CloudSaveService.Instance.Data.ForceDeleteAsync(string), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public static Task ForceDeleteAsync(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to be removed from the server |
Returns
| Type | Description |
|---|---|
| Task | Returns void. |
ForceSaveAsync(Dictionary<string, object>)
Obselete method for retrieving saving player data.
Declaration
[Obsolete("The interface provided by SaveData.ForceSaveAsync(Dictionary<string, object>) has been replaced by CloudSaveService.Instance.Data.ForceSaveAsync(Dictionary<string, object>), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public static Task ForceSaveAsync(Dictionary<string, object> data)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<string, object> | data | The dictionary of keys and corresponding values to upload |
Returns
| Type | Description |
|---|---|
| Task | The dictionary of saved keys and the corresponding updated write lock |
LoadAllAsync()
Obselete method for retrieving loading all player data.
Declaration
[Obsolete("The interface provided by SaveData.LoadAllAsync() has been replaced by CloudSaveService.Instance.Data.LoadAllAsync(), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public static Task<Dictionary<string, string>> LoadAllAsync()
Returns
| Type | Description |
|---|---|
| Task<Dictionary<string, string>> | The dictionary of all key-value pairs that represents the current state of data on the server including their write locks |
LoadAsync(HashSet<string>)
Obselete method for retrieving loading player data.
Declaration
[Obsolete("The interface provided by SaveData.LoadAsync(HashSet<string>) has been replaced by CloudSaveService.Instance.Data.LoadAsync(HashSet<string>), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public static Task<Dictionary<string, string>> LoadAsync(HashSet<string> keys = null)
Parameters
| Type | Name | Description |
|---|---|---|
| HashSet<string> | keys | The optional set of keys to load data for |
Returns
| Type | Description |
|---|---|
| Task<Dictionary<string, string>> | The dictionary of all key-value pairs that represents the current state of data on the server including their write locks |
RetrieveAllKeysAsync()
Obselete method for retrieving multiple player data keys.
Declaration
[Obsolete("The interface provided by SaveData.RetrieveAllKeysAsync() has been replaced by CloudSaveService.Instance.Data.RetrieveAllKeysAsync(), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public static Task<List<string>> RetrieveAllKeysAsync()
Returns
| Type | Description |
|---|---|
| Task<List<string>> | A list of keys and their metadata as stored in the server for the logged in player. |