playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.45k stars 963 forks source link

How to map Google Services Leaderboard user id to current user? #3309

Open vitalik198 opened 2 months ago

vitalik198 commented 2 months ago

✅ When we take userId via PlayGamesPlatform.Instance.localUser.id we get the correct answer: 107594550310309856665

✅ When we take userId via LeaderboardScoreData.PlayerScore.userID we get the correct answer: 107594550310309856665

❌ When we take userId via LeaderboardScoreData.Scores[0].userID we get id in some other format: a_443231828705151536

The question is why and how? Is this a bug or expected behavior?

A similar problem has already been voiced here