playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.43k stars 953 forks source link

Leaderboards examples doesn't work #3246

Closed RomainBitard closed 1 year ago

RomainBitard commented 1 year ago

Describe the bug When using PlayGamesPlatform.Instance.LoadScore() you get an error 2023/04/22 13:39:38.412 32247 32291 Error Unity at _Scripts._4FrameworksAndDrivers.GameStateController+<>c.b__19_6 (GooglePlayGames.BasicApi.LeaderboardScoreData data) [0x00000] in <00000000000000000000000000000000>:0

I used PlayGamesPlatform.Instance.LoadScores( EM_GPGSIds.leaderboard_leaderboard, LeaderboardStart.PlayerCentered, 4, LeaderboardCollection.Public, LeaderboardTimeSpan.AllTime, data => { if (!data.Valid) { Debug.LogError("Leaderboard - Invalid Data"); return; } My achievements work fine so it's not a configuration problem

Expected behavior The leaderboard is loaded

Observed behavior An error

Versions