Retrieving player information
Retrieve information about the current signed in player or other players.
You can retrieve information about a player using the GetPlayerInfo method in CoreServices. An instance of Player will be returned, with information such as name, profile picture URL, ban status and metadata.
Example
var player = await CoreServices.GetPlayerInfo("INSERT_PLAYER_UID_HERE");
// Access player information (e.g. player.DisplayName, player.Metadata, etc.)Getting the total number of players
You can retrieve the total number of players using the GetPlayerCount method in CoreServices.
Example
var playerCount = await CoreServices.GetPlayerCount();Last updated