docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class JoinByCodeRequest

    The body of a Join Lobby request using lobby code.

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

    Constructors

    JoinByCodeRequest(string, string, Player)

    Initializes a new instance of the JoinByCodeRequest class.

    Declaration
    [Preserve]
    public JoinByCodeRequest(string lobbyCode = null, string password = null, Player player = null)
    Parameters
    Type Name Description
    string lobbyCode

    The lobby code of the lobby to join. Mutually exclusive with id. This is used to join a private lobby where the lobby code was shared to other users manually. (required).

    string password

    The password to the target lobby. If target lobby HasPassword is true, this password must match or the request is denied..

    Player player

    player.

    Properties

    LobbyCode

    The lobby code of the lobby to join. Mutually exclusive with id. This is used to join a private lobby where the lobby code was shared to other users manually.

    Declaration
    [Preserve]
    public string LobbyCode { get; set; }
    Property Value
    Type Description
    string

    The lobby code of the lobby to join. Mutually exclusive with id. This is used to join a private lobby where the lobby code was shared to other users manually.

    Password

    The password to the target lobby. If target lobby HasPassword is true, this password must match or the request is denied.

    Declaration
    [Preserve]
    public string Password { get; set; }
    Property Value
    Type Description
    string

    The password to the target lobby. If target lobby HasPassword is true, this password must match or the request is denied.

    Player

    Gets or Sets Player

    Declaration
    [Preserve]
    public Player Player { get; set; }
    Property Value
    Type Description
    Player
    In This Article
    Back to top
    Copyright © 2024 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)