Interface INetworkHandler
A handler that configures the network as a session start and stops.
Namespace: Unity.Services.Multiplayer
Assembly: Unity.Services.Multiplayer.dll
Syntax
public interface INetworkHandler
Remarks
Implement this interface and specify it using SessionOptions.WithNetworkHandler to use sessions with a custom netcode solution, or to disable the default integration provided for Netcode for GameObjects and Netcode for Entities.
Methods
StartAsync(NetworkConfiguration)
Declaration
Task StartAsync(NetworkConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
NetworkConfiguration | configuration |
Returns
Type | Description |
---|---|
Task |
StopAsync()
Declaration
Task StopAsync()
Returns
Type | Description |
---|---|
Task |