Forum Discussion
Anonymous
6 years agoLeaderboard Entries?
The oculus leaderboard has three properties: API Name, Sort Order and Total Entries. My initial assumption was that the API Name referred to a single leaderboard that could have multiple key-value ent...
FocusVRGames
6 years agoAdventurer
Hi
I haven't done this in Unreal, but must be the same in unity assuming you have the same Oculus Integration within Unreal that you have in Unity the Oculus.Platform will handle pretty much everything for you.
The API name is a string reference to the leaderboard, when submitting a score to the leaderboard you include the API Name so Oculus know which leaderboard to add it to and the score you wish to add to that board.
To submit a score you use
Oculus.Platform.Leaderboard.WriteEntry(APIName,score)
Oculus handle the rest
It's worth noting you can't use Leaderboards until you have Initialized the core otherwise it will just return a null
Hope that helps, goodluck
Mike
I haven't done this in Unreal, but must be the same in unity assuming you have the same Oculus Integration within Unreal that you have in Unity the Oculus.Platform will handle pretty much everything for you.
The API name is a string reference to the leaderboard, when submitting a score to the leaderboard you include the API Name so Oculus know which leaderboard to add it to and the score you wish to add to that board.
To submit a score you use
Oculus.Platform.Leaderboard.WriteEntry(APIName,score)
Oculus handle the rest
It's worth noting you can't use Leaderboards until you have Initialized the core otherwise it will just return a null
Hope that helps, goodluck
Mike
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 8 months ago