Class RelayParameterExtensions
Extensions for RelayNetworkParameter.
Inherited Members
Namespace: Unity.Networking.Transport.Relay
Syntax
public static class RelayParameterExtensions
Methods
GetRelayParameters(ref NetworkSettings)
Gets the RelayNetworkParameter
Declaration
public static RelayNetworkParameter GetRelayParameters(this ref NetworkSettings settings)
Parameters
Type | Name | Description |
---|---|---|
NetworkSettings | settings | NetworkSettings to get parameters from. |
Returns
Type | Description |
---|---|
RelayNetworkParameter | Returns the RelayNetworkParameter values for the NetworkSettings |
WithRelayParameters(ref NetworkSettings, ref RelayServerData, Int32)
Sets the RelayNetworkParameter values for the NetworkSettings
Declaration
public static ref NetworkSettings WithRelayParameters(this ref NetworkSettings settings, ref RelayServerData serverData, int relayConnectionTimeMS = 3000)
Parameters
Type | Name | Description |
---|---|---|
NetworkSettings | settings | NetworkSettings to modify. |
RelayServerData | serverData | ServerData |
Int32 | relayConnectionTimeMS | RelayConnectionTimeMS |
Returns
Type | Description |
---|---|
NetworkSettings | Modified NetworkSettings. |