Class DefaultDriverBuilder
Default helper method implementation for constructing NetworkDriverStore.NetworkDriverInstance, default NetworkSettings and registering these on the NetworkDriverStore.
Inherited Members
Namespace: Unity.NetCode
Assembly: solution.dll
Syntax
public static class DefaultDriverBuilder
Properties
| Name | Description |
|---|---|
| DefaultDriverConstructor | Return an instance of the IPCAndSocketDriverConstructor constructor |
Methods
| Name | Description |
|---|---|
| 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). |
| CreateClientNetworkDriver<T>(T) | Helper method for creating NetworkDriver suitable for client.
The driver will use the the specified |
| CreateClientNetworkDriver<T>(T, NetworkSettings) | Helper method for creating NetworkDriver suitable for client.
The driver will use the specified Unity.Networking.Transport.INetworkInterface and is configured
using the provided |
| CreateClientPipelines(ref NetworkDriverInstance) | Create the default network pipelines (reliable, unreliable, unreliable fragmented) for the client. |
| CreateServerNetworkDriver<T>(T, int) | Helper method for creating server NetworkDriver given the specified |
| CreateServerNetworkDriver<T>(T, NetworkSettings) | Helper method for creating server NetworkDriver given the specified INetworkInterface The driver is configured using the NetworkSettings. |
| CreateServerPipelines(ref NetworkDriverInstance) | Create the default network pipelines (reliable, unreliable, unreliable fragmented) for the server. |
| GetNetworkServerSettings(int) | Return a set of internal default settings. This will use the NetworkSimulator parameters set by PlayMode Tools. |
| GetNetworkSettings() | Return a set of internal default settings. This will use the NetworkSimulator parameters set by PlayMode Tools. |
| RegisterClientDriver(World, ref NetworkDriverStore, NetDebug) | Register a NetworkDriver instance in the |
| RegisterClientDriver(World, ref NetworkDriverStore, NetDebug, NetworkSettings) | Register a NetworkDriver instance in the |
| RegisterClientDriver(World, ref NetworkDriverStore, NetDebug, ref RelayServerData) | Register a NetworkDriver instance in and stores it in |
| RegisterClientIpcDriver(World, ref NetworkDriverStore, NetDebug, NetworkSettings) | Register an IPCNetworkInterface NetworkDriver instance in |
| RegisterClientUdpDriver(World, ref NetworkDriverStore, NetDebug, NetworkSettings) | Register a UDPNetworkInterface NetworkDriver instance in |
| RegisterClientWebSocketDriver(World, ref NetworkDriverStore, NetDebug, NetworkSettings) | Register a WebSocketNetworkInterface NetworkDriver instance in |
| RegisterServerDriver(World, ref NetworkDriverStore, NetDebug, int) | Register multiple NetworkDriver instances to the |
| RegisterServerDriver(World, ref NetworkDriverStore, NetDebug, NetworkSettings) | Register a multiple NetworkDriver instances to hte |
| RegisterServerDriver(World, ref NetworkDriverStore, NetDebug, ref RelayServerData, int) | Register multiple NetworkDriver instances to the |
| RegisterServerIpcDriver(World, ref NetworkDriverStore, NetDebug, NetworkSettings) | Register a IPCNetworkInterface NetworkDriver instance in If the requested ClientServerBootstrap.PlayType is Server this will do nothing as no local clients will ever make use of the IPC mechanism. |
| RegisterServerUdpDriver(World, ref NetworkDriverStore, NetDebug, NetworkSettings) | Register a UDPNetworkInterface NetworkDriver instance in |
| RegisterServerWebSocketDriver(World, ref NetworkDriverStore, NetDebug, NetworkSettings) | Register a WebSocketNetworkInterface NetworkDriver instance in |