docs.unity3d.com
    Show / Hide Table of Contents

    Struct UnityTransport.SimulatorParameters

    Parameters for the Network Simulator

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Netcode.Transports.UTP
    Syntax
    [Serializable]
    public struct SimulatorParameters

    Fields

    PacketDelayMS

    Delay to add to every send and received packet (in milliseconds). Only applies in the editor and in development builds. The value is ignored in production builds.

    Declaration
    [Tooltip("Delay to add to every send and received packet (in milliseconds). Only applies in the editor and in development builds. The value is ignored in production builds.")]
    [SerializeField]
    public int PacketDelayMS
    Field Value
    Type Description
    Int32

    PacketDropRate

    Percentage of sent and received packets to drop. Only applies in the editor and in the editor and in developments builds.

    Declaration
    [Tooltip("Percentage of sent and received packets to drop. Only applies in the editor and in the editor and in developments builds.")]
    [SerializeField]
    public int PacketDropRate
    Field Value
    Type Description
    Int32

    PacketJitterMS

    Jitter (random variation) to add/substract to the packet delay (in milliseconds). Only applies in the editor and in development builds. The value is ignored in production builds.

    Declaration
    [Tooltip("Jitter (random variation) to add/substract to the packet delay (in milliseconds). Only applies in the editor and in development builds. The value is ignored in production builds.")]
    [SerializeField]
    public int PacketJitterMS
    Field Value
    Type Description
    Int32
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 26 October 2023