docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CreateTournamentPayload

    The payload for creating a tournament.

    Inheritance
    object
    JsObject
    CreateTournamentPayload
    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 CreateTournamentPayload : JsObject

    Constructors

    CreateTournamentPayload()

    Construct an instance of CreateTournamentPayload

    Declaration
    public CreateTournamentPayload()

    CreateTournamentPayload(double, CreateTournamentConfig, string)

    Creates a new instance of CreateTournamentPayload

    Declaration
    public CreateTournamentPayload(double initialScore, CreateTournamentConfig config, string data = null)
    Parameters
    Type Name Description
    double initialScore

    An integer value representing the player's score which will be the first score in the tournament.

    CreateTournamentConfig config

    An object holding optional configurations for the tournament.

    string data

    An optional blob of data to attach to the update, serialized as a JSON string. This string must represent a JSON object such as {"key": "value"} and be no more than 1,000 characters. All game sessions launched from the update can access this blob from the payload on the tournament.

    Properties

    Config

    An object holding optional configurations for the tournament.

    Declaration
    public CreateTournamentConfig Config { get; }
    Property Value
    Type Description
    CreateTournamentConfig

    Data

    An optional blob of data to attach to the update, serialized as a JSON string. This string must represent a JSON object such as {"key": "value"} and be no more than 1,000 characters. All game sessions launched from the update can access this blob from the payload on the tournament.

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

    InitialScore

    An integer value representing the player's score which will be the first score in the tournament.

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