Method ClientUseSocketDriver
ClientUseSocketDriver(NetDebug)
Helper method to determine if the client world should prefer using a socket-based network interface (UDP or WebSocket) or the IPCNetworkInterface. IPC connection type is preferred only in case the RequestedPlayType is set to client/server mode, a server world exist in the process and the Unity.NetCode.NetworkSimulatorSettings are disable (in the editor or development build).
Declaration
public static bool ClientUseSocketDriver(NetDebug netDebug)
Parameters
Type | Name | Description |
---|---|---|
NetDebug | netDebug |
Returns
Type | Description |
---|---|
bool | True when a client world should use a network driver which implements a socket based interface. |
Remarks
This method should not be used to configure server driver. Also, for server build, this method always return true.