GameCenterCredentials
Properties
public GameCenterCredentials? GameCenterCredentials { get; set; }
Game Center credentials used to log in to coherence Cloud.
Property Value
| Type | Description |
|---|---|
| GameCenterCredentials? |
Remarks
Unlike the other providers, Game Center credentials can not be configured in the Inspector, because of the number of values they consist of. Disable LogInOnLoad, assign this property, and then call LogInAsync(CancellationToken).
The credentials are the output of GameKit's fetchItems(forIdentityVerificationSignature:),
which your title fetches itself — coherence never calls GameKit. Pass
GKLocalPlayer.teamPlayerID, not gamePlayerID, and only assign this when
GKPlayer.scopedIDsArePersistent() is true; see
LoginWithGameCenter(GameCenterCredentials, CancellationToken) for why neither mistake can be detected
by coherence.
null unless 'Login' is set to 'With Game Center'. Assigning a non-null value sets 'Login' to 'With Game Center'.