Class NetworkOptions
Represents network specific options that can be configured when creating or joining a ISession.
Inherited Members
Namespace: Unity.Services.Multiplayer
Assembly: Unity.Services.Multiplayer.dll
Syntax
public class NetworkOptions
Remarks
Use the WithNetworkOptions<T>(T, NetworkOptions) when creating or joining a ISession to configure your network setup.
Properties
RelayProtocol
Overrides the RelayProtocol that the client will use when communicating with the Relay server.
Declaration
public RelayProtocol RelayProtocol { get; set; }
Property Value
| Type | Description |
|---|---|
| RelayProtocol |
Remarks
This value is only used when connecting to a ISession
that is configured with one of these Network connection:
WithRelayNetwork<T>(T, string)
WithRelayNetwork<T>(T, RelayNetworkOptions)
WithDistributedAuthorityNetwork<T>(T, string)
WithDistributedAuthorityNetwork<T>(T, RelayNetworkOptions)