Check out our ref documentation for a more in-depth understanding of the endpoint!
To copy and paste the above example into your editor, look here.
Input
You need to exchange the TriggerSubmitScore event for whatever event you want to use to trigger this flow.
Replace the input variables with the data you want to submit to the leaderboard.
Output
We recommend branching the completed events on the success flag in the response, and if you do this, you will probably want to add error handling in case the request fails as well as what (if any) continued actions you want on success.
Check out our ref documentation for a more in-depth understanding of the endpoint!
Check out our ref documentation for a more in-depth understanding of the endpoint!
Get Leaderboard Entries
string leaderboardKey ="my_leaderboard";int count =50;LootLockerSDKManager.GetScoreList(leaderboardKey, count,0, (response) =>{if (!response.success) {Debug.Log("Could not get score list!");Debug.Log(response.errorData.ToString());return; } Debug.Log("Successfully got score list!");});
Check out our ref documentation for a more in-depth understanding of the endpoint!
To copy and paste the above example into your editor, look here.
Input
You need to exchange the TriggerGetScores event for whatever event you want to use to trigger this flow. Replace the input variables with your leaderboard key, and how many items you want to get.
Output
We recommend branching the completed events on the success flag in the response, and if you do this, you will probably want to add error handling in case the request fails as well as what (if any) continued actions you want on success. If you want to fetch more items on the score list, you'll want to save the pagination information for later use.
Check out our ref documentation for a more in-depth understanding of the endpoint!
Check out our ref documentation for a more in-depth understanding of the endpoint!
Get single Entry on Leaderboard
string leaderboardKey ="my_leaderboard";string memberID ="50";LootLockerSDKManager.GetMemberRank(leaderboardKey, memberID, (response) =>{if (!response.success) {Debug.Log("Could not get the entry!");Debug.Log(response.errorData.ToString());return; } Debug.Log("Successfully got entry!");});
To copy and paste the above example into your editor, look here.
Input
You need to exchange the TriggerGetScores event for whatever event you want to use to trigger this flow. Replace the input variables with your leaderboard key and what member you want to fetch.
Output
We recommend branching the completed events on the success flag in the response, and if you do this, you will probably want to add error handling in case the request fails as well as what (if any) continued actions you want on success.