docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CreateRequest

    The body of a Create Lobby request.

    Inheritance
    object
    CreateRequest
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Services.Lobbies.Models
    Assembly: solution.dll
    Syntax
    [Preserve]
    public class CreateRequest

    Constructors

    Name Description
    CreateRequest(string, int, bool?, bool?, Player, Dictionary<string, DataObject>, string)

    The body of a Create Lobby request.

    Properties

    Name Description
    Data

    Custom game-specific properties that apply to the lobby (e.g. mapName or gameType).

    IsLocked

    Whether or not the lobby is locked. If true, new players will not be able to join.

    IsPrivate

    Whether or not the lobby is private. Private lobbies do not appear in query results and cannot be fetched by non-members using the GetLobby API. If the lobby is not publicly visible, the creator can share the lobbyCode with other users who can use it to join this lobby.

    MaxPlayers

    The maximum number of players that can be members of the lobby.

    Name

    The name of the lobby that should be displayed to users. All whitespace will be trimmed from the name.

    Password

    The password for this lobby. If specified, the lobby will be created with HasPassword set to true. All joins will be rejected unless provided password matches.

    Player

    Parameter player of CreateRequest

    In This Article
    Back to top
    Copyright © 2023 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)