Struct SimulatorPipelineStage
The SimulatorPipelineStage could be added on either the client or server to simulate bad network conditions. It's best to add it as the last stage in the pipeline, then it will either drop the packet or add a delay right before it would go on the wire.
Implements
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: Unity.Networking.Transport.dll
Syntax
public struct SimulatorPipelineStage : INetworkPipelineStage
Properties
StaticSize
Gets the value of the static size
Declaration
public int StaticSize { get; }
Property Value
Type | Description |
---|---|
int |
Methods
StaticInitialize(byte*, int, NetworkSettings)
Statics the initialize using the specified static instance buffer
Declaration
public NetworkPipelineStage StaticInitialize(byte* staticInstanceBuffer, int staticInstanceBufferLength, NetworkSettings settings)
Parameters
Type | Name | Description |
---|---|---|
byte* | staticInstanceBuffer | The static instance buffer |
int | staticInstanceBufferLength | The static instance buffer length |
Network |
settings | The net params |
Returns
Type | Description |
---|---|
Network |
The network pipeline stage |