Struct RelayNetworkParameter
Relay protocol network parementers used to connect to the Unity Relay service. This data must be provided to the Create(NetworkSettings) function in order to be able to use connect to Relay.
Inherited Members
Namespace: Unity.Networking.Transport.Relay
Syntax
public struct RelayNetworkParameter : INetworkParameter
Fields
RelayConnectionTimeMS
The timeout in milliseconds after which a ping message is sent to the Relay Server to keep the connection alive.
Declaration
public int RelayConnectionTimeMS
Field Value
Type | Description |
---|---|
Int32 |
ServerData
The data that is used to describe the connection to the Relay Server.
Declaration
public RelayServerData ServerData
Field Value
Type | Description |
---|---|
RelayServerData |
Methods
Validate()
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
Boolean |