Interface INetworkStreamDriverConstructor
Factory interface that needs to be implemented by a concrete class for creating and registering new Unity.Networking.Transport.NetworkDriver instances.
Namespace: Unity.Netcode
Assembly: Unity.NetCode.dll
Syntax
[MovedFrom(true, "Unity.NetCode", null, null)]
public interface INetworkStreamDriverConstructor
Methods
CreateClientDriver(NetcodeWorld, ref NetworkDriverStore, NetDebug)
Register to the driver store a new instance of Unity.Networking.Transport.NetworkDriver suitable to be used by clients.
Declaration
void CreateClientDriver(NetcodeWorld world, ref NetworkDriverStore driver, NetDebug netDebug)
Parameters
| Type | Name | Description |
|---|---|---|
| NetcodeWorld | world | Client world |
| NetworkDriverStore | driver | Driver store |
| NetDebug | netDebug | The netDebug singleton, for logging errors and debug information |
CreateServerDriver(NetcodeWorld, ref NetworkDriverStore, NetDebug)
Register to the driver store a new instance of Unity.Networking.Transport.NetworkDriver suitable to be used by servers.
Declaration
void CreateServerDriver(NetcodeWorld world, ref NetworkDriverStore driver, NetDebug netDebug)
Parameters
| Type | Name | Description |
|---|---|---|
| NetcodeWorld | world | Server world |
| NetworkDriverStore | driver | Driver store |
| NetDebug | netDebug | The netDebug singleton, for logging errors and debug information |