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.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Networking.Transport
    Syntax
    [BurstCompile]
    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 © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, April 27, 2023