Names
When possible, LootLocker will attach a name to the player when starting a session. This however, is only possible for platforms where the player has a name already, such as Steam or PlayStation Network.

Platforms Supporting Automatic Names

Platforms where the name is automatically retrieved when starting a session:
    Steam
    PlayStation Network
If you're using a platform without automatic player names, or want to update the name LootLocker has stored for the player, it's possible to change the name using the SDK or API.
Player names can also be viewed in the web console:
Players with names in the web console

Update Player Name in Game

Unity
1
LootLockerSDKManager.SetPlayerName("Some other name", (response) =>
2
{
3
if (response.success)
4
{
5
Debug.Log("Successfully set player name");
6
} else
7
{
8
Debug.Log("Error setting player name");
9
}
10
});
Copied!

Retrieve Player Name in Game

Unity
1
LootLockerSDKManager.GetPlayerName((response) =>
2
{
3
if (response.success)
4
{
5
Debug.Log("Successfully retrieved player name: " + response.name);
6
} else
7
{
8
Debug.Log("Error getting player name");
9
}
10
});
Copied!
Last modified 30d ago