APIs
Was this helpful?
Was this helpful?
You can access coherence Cloud features from the Unity SDK via the CloudService instance, which can be acquired via the property of a PlayerAccount object.
You can acquire a reference to a PlayerAccount first by logging in using (see and example code for an example), and then by using .
Through the CloudService instance, you will be able to fetch the existing of your project, create new , delete and fetch existing , as well as access the various available .
In the subsections of this page, you will be able to find detailed usage examples of each feature from the .
In the inspector of a instance, you will find two settings related with the coherence Cloud:
Player Account:
If set to Auto Login As Guest, the Cloud Service will automatically log in with the coherence Cloud using a guest player account.
If set to None, the Cloud Service will not connect with coherence Cloud at all.
Cloud Unique ID: Uniquely identify the Cloud Service used by this CoherenceBridge. This allows multiple Coherence Bridges to auto login as different guests on the same device, which could be useful for local multiplayer. If no Cloud Unique ID is specified for a bridge, one will be autogenerated.
If set to Main User, the Cloud Service will not log in to coherence automatically, but will connect with when you start logging in to coherence Cloud manually.