cancel
Showing results for 
Search instead for 
Did you mean: 

Getting a specific user entry on a Leaderboard

cemyasan
Explorer
Hi,

Is there a way to get entries on a leaderboard by oculus id of a user, there seems to be you can only get entries around a user or from a rank. 

What I'm trying to do is that I make a call in let's say Leaderboard A for first 10 ranks and I need to get the scores of these 10 users in Leaderboard B too.

Is this can be done with the current SDK or if not is this planned to be implemented on coming updates, and is there somebody else who needed to implement this and had a workaround somehow?

Thank you!
3 REPLIES 3

charles_beyer
Protege
cemyasan,  I don't think this is possible in the current SDK.  Instead you can use ovr_Leaderboard_GetEntries to page through all the entries in Leaderboard B to determine the rank of the users.  The response to that call returns an ovrLeaderboardEntryArray and you can call ovr_LeaderboardEntryArray_HasNextPage to see if there are more results to fetch.  Unfortunately that's not an ideal solution if the leaderboard is huge.

cemyasan
Explorer
Alright, thanks for the answer! I think we are going to cancel the feature.

eblavender
Honored Guest
Any update on this? Is there a way to get the players own entry?