docs.unity.cn
    Show / Hide Table of Contents

    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.

    Namespace: Unity.Networking.Transport
    Syntax
    public struct SimulatorPipelineStage : INetworkPipelineStage

    Properties

    StaticSize

    Declaration
    public readonly int StaticSize { get; }
    Property Value
    Type Description
    Int32
    Implements
    INetworkPipelineStage.StaticSize

    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

    Implements
    INetworkPipelineStage.StaticInitialize(Byte*, Int32, NetworkSettings)
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Thursday, March 31, 2022
    Terms of use