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.
Inherited Members
Namespace: Unity.Networking.Transport
Syntax
[BurstCompile]
public struct SimulatorPipelineStage : INetworkPipelineStage
Properties
StaticSize
Declaration
public readonly int StaticSize { get; }
Property Value
Type | Description |
---|---|
Int32 |
Implements
Methods
StaticInitialize(Byte*, Int32, 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 |
Int32 | staticInstanceBufferLength | The static instance buffer length |
NetworkSettings | settings | The net params |
Returns
Type | Description |
---|---|
NetworkPipelineStage | The network pipeline stage |