docs.unity3d.com
    Show / Hide Table of Contents

    Class MatchOptions

    Inheritance
    Object
    MatchOptions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Services.Multiplayer
    Syntax
    public class MatchOptions

    Properties

    CreateLobbyOptions

    Options to be used for the Lobby creation.

    Declaration
    public CreateLobbyOptions CreateLobbyOptions { get; set; }
    Property Value
    Type Description
    CreateLobbyOptions

    DgsSessionManagerProviderOverride

    If set, overrides the default DgsSessionManagerProvider.

    Declaration
    public Func<MultiplayAssignment, MatchOptions, ISessionManager> DgsSessionManagerProviderOverride { get; set; }
    Property Value
    Type Description
    Func<MultiplayAssignment, MatchOptions, ISessionManager>

    MaxPlayers

    Maximum number of players in the match.

    Declaration
    public int MaxPlayers { get; set; }
    Property Value
    Type Description
    Int32

    P2PSessionManagerProviderOverride

    If set, overrides the default P2PSessionManagerProvider.

    Declaration
    public Func<MatchIdAssignment, IPlayerId, MatchOptions, ISessionManager> P2PSessionManagerProviderOverride { get; set; }
    Property Value
    Type Description
    Func<MatchIdAssignment, IPlayerId, MatchOptions, ISessionManager>

    PlayersProviderOverride

    If set, overrides the default PlayersProvider.

    Declaration
    public IPlayers PlayersProviderOverride { get; set; }
    Property Value
    Type Description
    IPlayers

    PreHostStartHook

    This function will be called before the P2P host sets up its connection and clients can connect to it. Use it to initialize anything needed before the netcode stack is started.

    Declaration
    public Func<MatchmakingResults, Task> PreHostStartHook { get; set; }
    Property Value
    Type Description
    Func<MatchmakingResults, Task>

    QueueName

    Name of the Matchmaker queue to use.

    Declaration
    public string QueueName { get; set; }
    Property Value
    Type Description
    String

    TicketAttributes

    Attributes to be used for the Matchmaking ticket request.

    Declaration
    public Dictionary<string, object> TicketAttributes { get; set; }
    Property Value
    Type Description
    Dictionary<String, Object>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023