Retrieving Leaderboard Data
Global Top Scores
[SerializeField]
SteamLeaderboards steamLeaderboards;
IEnumerator AsyncGetLeaderboardEntries()
{
steamLeaderboards.GetCurrentLeaderboardGlobal(1, 10); // 1st to 10th plyers
while(steamLeaderboards.IsGettingLeaderboardEntries)
{
yield return null; // Wait until leaderdords data are fetched
}
// Wait a while for the avatar images to load or ignore this line
// if you only want to get the player names
yield return new WaitForSeconds(1.5f);
foreach (SteamLeaderboardEntry leaderboardEntry in steamLeaderboards.LeaderboardEntries)
{
// Do whatever you want
}
}Scores Around Player
Player And Friends
Last updated