docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class JoinRequest

    A request to join a Relay server using a join code.

    Inheritance
    object
    JoinRequest
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Relay.Models
    Assembly: Unity.Services.Multiplayer.dll
    Syntax
    [Preserve]
    [DataContract(Name = "JoinRequest")]
    public class JoinRequest

    Constructors

    JoinRequest(string)

    A request to join a Relay server using a join code.

    Declaration
    [Preserve]
    public JoinRequest(string joinCode)
    Parameters
    Type Name Description
    string joinCode

    Join codes are case-insensitive, span six to twelve characters, and are composed only of characters that are in '6789BCDFGHJKLMNPQRTW'. The Allocations service uses join codes to look up the connection data of the host player who created the join code.

    Properties

    JoinCode

    Join codes are case-insensitive, span six to twelve characters, and are composed only of characters that are in '6789BCDFGHJKLMNPQRTW'. The Allocations service uses join codes to look up the connection data of the host player who created the join code.

    Declaration
    [Preserve]
    [DataMember(Name = "joinCode", IsRequired = true, EmitDefaultValue = true)]
    public string JoinCode { get; }
    Property Value
    Type Description
    string
    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)