Read more about the Leaderboards system in Hiro here.
Initializing the leaderboards system #
The leaderboards system relies on the Nakama System which must be passed in as dependency via the constructor.
Getting leaderboard records #
You can get cached leaderboard records for a specific leaderboard.
Getting leaderboard records for specific users #
You can get leaderboard records for a specific set of users, by providing either an array of user Ids, a list of friends or a Team (as defined in the
For specific users:
You can also specific the region to retrieve records for:
Getting the user’s own leaderboard record #
You can get the user’s own leaderboard record.
You can also optionally specify a region ID to get the region specific score.
Getting the list of global leaderboard IDs #
You can get a list of global leaderboard IDs.
Getting the list of regional for a leaderboard #
You can get a list of regions for a specified leaderboard.
Submitting a leaderboard score #
You can submit a leaderboard score for the user.