Class RandomConnectionsSwap
NetworkScenario that iterates through the Configurations list in a random order.
Inherited Members
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. |