question

ashburnbeau747@gmail.com avatar image
ashburnbeau747@gmail.com asked

Delete/Remove A Single Player From A Leaderboard

I am making a program in which players compete on a global and sectional leaderboard. Each player can choose and change the sectional leaderboard they are on. Could I delete their score from the leaderboard using a C# script, so players could only be on one leaderboard at a time?

unity3dLeaderboards and Statistics
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

If by delete the score you mean remove the player from the specific leaderboard, there is no method you can use to achieve that, you can only remove the player from leaderboard in the Game Manager manually. Or you can update the score to 0 by calling the Update Player Statistic API, then after get the leaderboard, you can filter the leaderboard data to only display players with the value larger than 0.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

dogukangozum avatar image dogukangozum commented ·

Yes we can update the score to 0 but it is using the highest value so it doesn't do anything if you use max list.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.