docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SimulatorStageParameterExtensions

    Extensions for SimulatorUtility.Parameters.

    Inheritance
    object
    SimulatorStageParameterExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Networking.Transport.Utilities
    Assembly: Unity.Networking.Transport.dll
    Syntax
    public static class SimulatorStageParameterExtensions

    Methods

    GetSimulatorStageParameters(ref NetworkSettings)

    Gets the SimulatorUtility.Parameters

    Declaration
    public static SimulatorUtility.Parameters GetSimulatorStageParameters(this ref NetworkSettings settings)
    Parameters
    Type Name Description
    NetworkSettings settings

    NetworkSettings to get parameters from.

    Returns
    Type Description
    SimulatorUtility.Parameters

    Returns the SimulatorUtility.Parameters values for the NetworkSettings

    WithSimulatorStageParameters(ref NetworkSettings, int, int, int, int, int, int, int, int, uint)

    Sets the SimulatorUtility.Parameters values for the NetworkSettings

    Declaration
    public static ref NetworkSettings WithSimulatorStageParameters(this ref NetworkSettings settings, int maxPacketCount, int maxPacketSize, int packetDelayMs = 0, int packetJitterMs = 0, int packetDropInterval = 0, int packetDropPercentage = 0, int fuzzFactor = 0, int fuzzOffset = 0, uint randomSeed = 0)
    Parameters
    Type Name Description
    NetworkSettings settings

    NetworkSettings to modify.

    int maxPacketCount

    MaxPacketCount

    int maxPacketSize

    MaxPacketSize

    int packetDelayMs

    PacketDelayMs

    int packetJitterMs

    PacketJitterMs

    int packetDropInterval

    PacketDropInterval

    int packetDropPercentage

    PacketDropPercentage

    int fuzzFactor

    FuzzFactor

    int fuzzOffset

    FuzzOffset

    uint randomSeed

    RandomSeed

    Returns
    Type Description
    NetworkSettings

    Modified NetworkSettings.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)