docs.unity3d.com
    Show / Hide Table of Contents

    Class SimulatorStageParameterExtensions

    Extensions for SimulatorUtility.Parameters.

    Inheritance
    Object
    SimulatorStageParameterExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Networking.Transport.Utilities
    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, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, UInt32)

    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 = 0U)
    Parameters
    Type Name Description
    NetworkSettings settings

    NetworkSettings to modify.

    Int32 maxPacketCount MaxPacketCount
    Int32 maxPacketSize MaxPacketSize
    Int32 packetDelayMs PacketDelayMs
    Int32 packetJitterMs PacketJitterMs
    Int32 packetDropInterval PacketDropInterval
    Int32 packetDropPercentage PacketDropPercentage
    Int32 fuzzFactor FuzzFactor
    Int32 fuzzOffset FuzzOffset
    UInt32 randomSeed RandomSeed
    Returns
    Type Description
    NetworkSettings

    Modified NetworkSettings.

    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