Cloud Storage
Store data in the cloud
Storage Object Identifier
StorageObjectId playerInventoryId = ("PlayerInventory", user.UserId);public StorageObjectId objectId = ("Level", Guid.NewGuid());Usage
Saving Objects
using Coherence.Toolkit;
using UnityEngine;
class SaveExample : MonoBehaviour
{
public StorageObjectId objectId = ("Greeter", 1);
public CoherenceBridge bridge = null!;
CloudStorage CloudStorage => bridge.CloudService.GameServices.CloudStorage;
async void Start()
{
// Save the string "Hello, World!" in cloud storage:
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?

