Cloud Storage
Store data in the cloud
Storage Object Identifier
Usage
Saving Objects
using Coherence.Toolkit;
using UnityEngine;
class CloudSaveExample : MonoBehaviour
{
public StorageObjectId objectId = ("Greeter", 1);
async void Start()
{
// Get main player account once it has logged in.
PlayerAccount playerAccount = await PlayerAccount.GetMainAsync();
// Save the string "Hello, World!" in cloud storage:
var cloudStorage => playerAccount.Services.GameServices.CloudStorage;
await cloudStorage.SaveObjectAsync(objectId, "Hello, World!");
}
}Loading Objects
Deleting Objects
Storage Operation
Async Methods
Coroutines
Callbacks
Error Handling
Serialization
Supported Types
Throttling
Other Considerations
Last updated
Was this helpful?

