docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LeaderboardPlayer

    Represents details about the player associated with a score entry.

    Inheritance
    object
    JsObject
    LeaderboardPlayer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)