Reputation: 3903
I have a unity project and I have added SteamWork.net wrapper to my project , and In that project I do leaderboard upload / setting statistics etc
I have no clue how to get rank in a leaderboard ?
Let's say I have a leaderboard called "Highscore" , Then how do I get my rank in leaderboard ?
Upvotes: 1
Views: 1797
Reputation: 235
There is a method for getting scores for specific steam users. So we can just send the csteamID of the local user and get the details as shown below.
CSteamID[] Users = { SteamUser.GetSteamID() }; // Local user steam id
SteamAPICall_t handle = SteamUserStats.DownloadLeaderboardEntriesForUsers(m_SteamLeaderboard, Users, Users.Length);
.
.
Upvotes: 2