Manage player names
Manage player display names and handle naming updates throughout the player lifecycle.
Read time 1 minuteLast updated 15 hours ago
Minimum SDK version: 2.5.0-pre.3. Ensure you have the right version. Players can associate a player name with their player ID, providing a customizable and more readable representation of their identity. Player IDs map to exactly one player name, and vice versa.
Setting player name
Players must be signed in to create or update their player name. UseAuthenticationService.Instance.UpdatePlayerNameAsync(playerName)UpdatePlayerNameAsyncUpdatePlayerNameAsyncGetting player name
Players must be signed in to get their player name. UseAuthenticationService.Instance.GetPlayerNameAsync()GetPlayerNameAsyncCaching
The player name is cached locally per profile each timeUpdatePlayerNameAsyncGetPlayerNameAsyncAuthenticationService.Instance.PlayerNameGetPlayerNameAsync