id
This user's global unique identifier.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Property
- Namespace: UnityEngine.SocialPlatforms
- Assembly: UnityEngine.GameCenterModule
string id { get; }
Remarks
For devices running iOS version 12.4 and later, _id returns GKPlayer.teamPlayerID.
For devices running iOS version 12.3 and earlier, _id returns GKPlayer.playerID.
Use _id instead of _legacyId. Only use _legacyId if you need to access GKPlayer.playerID to migrate player data in your existing project.