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
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023