Class NetworkPipelineStageCollection
The network pipeline stage collection class
Inherited Members
Namespace: Unity.Networking.Transport
Syntax
public static class NetworkPipelineStageCollection
Methods
GetStageId(Type)
Gets the stage id using the specified stage type
Declaration
public static NetworkPipelineStageId GetStageId(Type stageType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | stageType | The stage type |
Returns
| Type | Description |
|---|---|
| NetworkPipelineStageId | The network pipeline stage id |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Pipeline stage {stageType} is not registered |
RegisterPipelineStage(INetworkPipelineStage)
Registers the pipeline stage using the specified stage
Declaration
public static void RegisterPipelineStage(INetworkPipelineStage stage)
Parameters
| Type | Name | Description |
|---|---|---|
| INetworkPipelineStage | stage | The stage |