Class CustomWidgetsNetworkHandler
Base Class to write a custom NetworkHandler for Multiplayer Services Package.
Implements
Inherited Members
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Multiplayer.Widgets
Assembly: Unity.Multiplayer.Widgets.Core.dll
Syntax
public abstract class CustomWidgetsNetworkHandler : ScriptableObject, INetworkHandler
Methods
StartAsync(NetworkConfiguration)
Called when connection is created.
Can be used to do Setup Steps during Starting the connection.
Declaration
public abstract Task StartAsync(NetworkConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkConfiguration | configuration | The Network Configuration |
Returns
| Type | Description |
|---|---|
| Task | Task |
StopAsync()
Called when connection is terminated.
Can be used for Tear Down Steps during stopping the connection.
Declaration
public abstract Task StopAsync()
Returns
| Type | Description |
|---|---|
| Task | Task |