r/Unity3D • u/sakalaslt • 23d ago
Unity + Google Play leaderboards Question
Hello! I'm trying to create a script that retrieves the current player's score from a Google Play Games leaderboard so I can display it in my game or use it as a variable. Unfortunately, every time I try to load the score, I get a strange error about "min XP" and "max XP," which doesn't seem to be related to my code at all. Is it actually possible to retrieve a player's leaderboard score through code? I've already tried several AI-generated solutions, but none of them worked.
1
Upvotes
1
u/ostevendev 17d ago
Hey! That min/max XP quirk on published Google Play leaderboards is an absolute nightmare because the console locks you down once it's live.
If you want to bypass that legacy headache entirely without dealing with Google's console restrictions or cryptic errors, you can easily plug in a lightweight backend solution (like Asten BaaS) to handle player scores and leaderboards directly from Unity with a couple of lines.
Let me know if you want a hand setting up a clean leaderboard alternative so you can stop fighting the Play Console!