docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LeaderboardUpdatePayload

    Represents a leaderboard update for UpdateAsync(LeaderboardUpdatePayload)..

    Inheritance
    object
    JsObject
    LeaderboardUpdatePayload
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Meta.InstantGames.v7
    Assembly: Unity.Meta.InstantGames.Sdk.v7.dll
    Syntax
    public class LeaderboardUpdatePayload : JsObject

    Constructors

    LeaderboardUpdatePayload(UpdateAction, string, string)

    Creates a new instance of LeaderboardUpdatePayload

    Declaration
    public LeaderboardUpdatePayload(UpdateAction action, string name, string text = null)
    Parameters
    Type Name Description
    UpdateAction action

    For a leaderboard update, this should be 'LEADERBOARD'. text. By default we will use a localized 'Play Now' as the button text.

    string name

    The name of the leaderboard to feature in the update.

    string text

    Optional text message. If not specified, a localized fallback message will be provided instead.

    Properties

    Action

    For a leaderboard update, this should be 'LEADERBOARD'. text. By default we will use a localized 'Play Now' as the button text.

    Declaration
    public UpdateAction Action { get; }
    Property Value
    Type Description
    UpdateAction

    Name

    The name of the leaderboard to feature in the update.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    Text

    Optional text message. If not specified, a localized fallback message will be provided instead.

    Declaration
    public string Text { get; }
    Property Value
    Type Description
    string
    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)