Use Player Leaderboards

Submitting Score

Submit a score to a player leaderboard.

string leaderboardKey = "my_leaderboard";
int score = 1000;

LootLockerSDKManager.SubmitScore("", score, leaderboardKey, (response) =>
{
    if (!response.success) {
        Debug.Log("Could not submit score!");
        Debug.Log(response.errorData.ToString());
        return;
    } 
    Debug.Log("Successfully submitted score!");
   
});

Check out our Reference Documentation for a more in-depth understanding of the endpoint.

Get Leaderboard Entries

Retrieve the first 50 player leaderboard entires.

Check out our Reference Documentation for a more in-depth understanding of the endpoint.

Get Single Entry on Leaderboard

Retrieve a single entry on a player leaderboard.

Last updated