Class JoinCodeData
JoinCodeData model
Inherited Members
Namespace: Unity.Services.Relay.Models
Assembly: Unity.Services.Multiplayer.dll
Syntax
[Preserve]
[DataContract(Name = "JoinCodeData")]
public class JoinCodeData
Constructors
JoinCodeData(string)
Creates an instance of JoinCodeData.
Declaration
[Preserve]
public JoinCodeData(string joinCode)
Parameters
Type | Name | Description |
---|---|---|
string | joinCode | The connecting player can use the join code with the |
Properties
JoinCode
The connecting player can use the join code with the /join
endpoint to join the same Relay server as the host player who created the join code. The join code is case-insensitive.
Declaration
[Preserve]
[DataMember(Name = "joinCode", IsRequired = true, EmitDefaultValue = true)]
public string JoinCode { get; }
Property Value
Type | Description |
---|---|
string |