docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RandomConnectionsSwap

    NetworkScenario that iterates through the Configurations list in a random order.

    Inheritance
    object
    NetworkScenario
    NetworkScenarioTask
    RandomConnectionsSwap
    Inherited Members
    NetworkScenarioTask.Start(INetworkEventsApi)
    NetworkScenarioTask.Dispose()
    NetworkScenario.IsPaused
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Unity.Multiplayer.Tools.NetworkSimulator.Runtime.BuiltInScenarios
    Assembly: solution.dll
    Syntax
    [UsedImplicitly]
    [Serializable]
    public sealed class RandomConnectionsSwap : NetworkScenarioTask

    Fields

    Name Description
    ChangeIntervalMilliseconds

    Time in milliseconds to activate the next ConnectionPreset.

    Properties

    Name Description
    Configurations

    Defines the available ConnectionPreset list. RandomConnectionsSwap.Configuration

    Methods

    Name Description
    Run(INetworkEventsApi, CancellationToken)

    Starts running the underlying network scenario. Make sure to handle when IsPaused and the cancellation token.

    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)