Struct RelayNetworkParameter
Parameters for the Unity Relay connection.
Implements
Inherited Members
Namespace: Unity.Networking.Transport.Relay
Assembly: Unity.Networking.Transport.dll
Syntax
[Serializable]
public struct RelayNetworkParameter : INetworkParameterFields
RelayConnectionTimeMS
Frequency at which the relay server will be pinged to maintain the connection alive. Should be set to less than 10 seconds (default is 3 seconds) since that's the time after which the relay server will sever the connection if there is no activity.
Declaration
public int RelayConnectionTimeMSField Value
| Type | Description | 
|---|---|
| int | Frequency in milliseconds. | 
ServerData
Connection information about the relay server.
Declaration
public RelayServerData ServerDataField Value
| Type | Description | 
|---|---|
| RelayServerData | Server data structure. | 
Methods
Validate()
Checks if the values for all fields are valid. This method will be automatically called when adding parameters to the NetworkSettings.
Declaration
public bool Validate()Returns
| Type | Description | 
|---|---|
| bool | True if the parameter is valid, false otherwise. |