docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CreateTournamentConfig

    Represents the configurations used in creating an instant tournament.

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

    Constructors

    CreateTournamentConfig(string, string, TournamentScoreFormat?, TournamentSortOrder?, double?)

    Creates a new instance of CreateTournamentConfig

    Declaration
    public CreateTournamentConfig(string title = null, string image = null, TournamentScoreFormat? scoreFormat = null, TournamentSortOrder? sortOrder = null, double? endTime = null)
    Parameters
    Type Name Description
    string title

    Optional text title for the tournament.

    string image

    Optional Base64-encoded image that will be associated with the tournament and included in posts sharing the tournament.

    TournamentScoreFormat? scoreFormat

    Optional input for the formatting of the scores in the tournament leaderboard. The options are 'NUMERIC' or 'TIME'. If not specified, the default is 'NUMERIC'.

    TournamentSortOrder? sortOrder

    Optional input for the ordering of which score is best in the tournament. The options are 'HIGHER_IS_BETTER' or 'LOWER_IS_BETTER'. If not specified, the default is 'HIGHER_IS_BETTER'.

    double? endTime

    Optional input for setting a custom end time for the tournament. The number passed in represents a unix timestamp. If not specified, the tournament will end one week after creation.

    Properties

    EndTime

    Optional input for setting a custom end time for the tournament. The number passed in represents a unix timestamp. If not specified, the tournament will end one week after creation.

    Declaration
    public double? EndTime { get; }
    Property Value
    Type Description
    double?

    Image

    Optional Base64-encoded image that will be associated with the tournament and included in posts sharing the tournament.

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

    ScoreFormat

    Optional input for the formatting of the scores in the tournament leaderboard. The options are 'NUMERIC' or 'TIME'. If not specified, the default is 'NUMERIC'.

    Declaration
    public TournamentScoreFormat? ScoreFormat { get; }
    Property Value
    Type Description
    TournamentScoreFormat?

    SortOrder

    Optional input for the ordering of which score is best in the tournament. The options are 'HIGHER_IS_BETTER' or 'LOWER_IS_BETTER'. If not specified, the default is 'HIGHER_IS_BETTER'.

    Declaration
    public TournamentSortOrder? SortOrder { get; }
    Property Value
    Type Description
    TournamentSortOrder?

    Title

    Optional text title for the tournament.

    Declaration
    public string Title { 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)