- Home /
Is there an easy way to tell if Social.ReportScore is passed a new highscore?
I didn't find anything like this on the docs so I'm not hopeful, but it would be really nice. I'm using the Play Games for Unity plugin to link it to my Google Developer account.
Basically, I have this code:
Social.ReportScore(score, "mykey", (bool success) => {
if(success)
newHighScoreAchieved(score);
});
Is there any way to callback with a boolean telling me whether or not the score was replaced?
If there isn't, the only way I can think of to accomplish checking for a new highscore would be to query the leaderboard beforehand, and compare it to the value I pass to ReportScore
. This is a costly extra api call I want to avoid making.
Your answer
Follow this Question
Related Questions
How to wait for networkfunction to return a value ? 1 Answer
Can sign in using Google Play Games Plugin, but unable to load scores from the leaderboard 2 Answers
Google play leader board player profile not public 1 Answer
Need help, Not showing Leaderboard UI for android. 1 Answer
Understanding the "daily" and "weekly" scopes in Unity.Social & Apple GameCenter Leaderboards 1 Answer