docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Create

    Create(string, string, int, int, int, int)

    Utility function to create a configuration at runtime.

    Declaration
    public static NetworkSimulatorPresetAsset Create(string name, string description = "", int packetDelayMs = 0, int packetJitterMs = 0, int packetLossInterval = 0, int packetLossPercent = 0)
    Parameters
    Type Name Description
    string name

    Name of the configuration.

    string description

    Description of the configuration.

    int packetDelayMs

    Value for the packet delay in milliseconds.

    int packetJitterMs

    Value for the network jitter in milliseconds.

    int packetLossInterval

    Value for the packet loss interval.

    int packetLossPercent

    Value for the packet loss percentage.

    Returns
    Type Description
    NetworkSimulatorPresetAsset

    A valid simulation configuration.

    In This Article
    Back to top
    Copyright © 2023 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)