Class LeaderboardPlayer
Represents details about the player associated with a score entry.
Inherited Members
Namespace: Meta.InstantGames
Assembly: Unity.Meta.InstantGames.Sdk.dll
Syntax
public class LeaderboardPlayer : JsObject
Constructors
LeaderboardPlayer()
Construct an instance of LeaderboardPlayer
Declaration
public LeaderboardPlayer()
Methods
GetID()
Gets the game's unique identifier for the player.
Declaration
public string GetID()
Returns
| Type | Description |
|---|---|
| string | The game-scoped identifier for the player. |
GetName()
Gets the player's localized display name.
Declaration
public string GetName()
Returns
| Type | Description |
|---|---|
| string | The player's localized display name. |
GetPhoto()
Gets the URL to the player's public profile photo.
Declaration
public string GetPhoto()
Returns
| Type | Description |
|---|---|
| string | The URL to the player's public profile photo. |