Leaderboards
Last updated
Last updated
The Leaderboard API can be accessed using Platform.server.leaderboard
.
Leaderboards are durable. Data will not be cleaned up or deleted.
The Leaderboard API can only be used on the server.
Overall leaderboard rankings retrieved from GetRankRange() will reflect changes immediately.
Placement for individual entries retrieved from GetRank() may take up to 1 minute to reflect changes.
Leaderboards must be created on the create dashboard before use:
If you are tracking player stats with leaderboards, it's often best to use the player's userId as the key. Though the most common keys are user IDs, you can use any unique value as a leaderboard key. For example, if you have a clan system in your game, you could use the clan ID to track total wins for a given clan.