Skip to main content

Unity.Multiplayer.Tools.NetworkSimulator.Runtime.NetworkSimulator

Add this component to any game object to configure network simulation parameters.

Inheritance#

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

Implements#

System.ComponentModel.INotifyPropertyChanged

Namespace: System.Dynamic.ExpandoObject#
Assembly: Tools.dll#
Syntax#
public class NetworkSimulator : MonoBehaviour, INotifyPropertyChanged

Fields#

AutoRunScenario#

Allows to determine if network scenarios should start automatically or not.

Declaration#

public bool AutoRunScenario

Field Value#

TypeDescription
System.Boolean

Properties#

ConnectionPreset#

The Connection Preset used to define a set of connection parameters to simulate the network condition at runtime.

Declaration#

public INetworkSimulatorPreset ConnectionPreset { get; set; }

Property Value#

TypeDescription
INetworkSimulatorPreset

IsAvailable#

Returns whether the underlying network transport is available.

Declaration#

public bool IsAvailable { get; }

Property Value#

TypeDescription
System.Boolean

IsConnected#

Returns whether the underlying network transport is connected.

Declaration#

public bool IsConnected { get; }

Property Value#

TypeDescription
System.Boolean

Scenario#

The Network Scenario used to modify network connection parameters at runtime.

Declaration#

public NetworkScenario Scenario { get; set; }

Property Value#

TypeDescription
NetworkScenario

Explicit Interface Implementations#

INotifyPropertyChanged.PropertyChanged#

Declaration#

event PropertyChangedEventHandler INotifyPropertyChanged.PropertyChanged

Returns#

TypeDescription
System.ComponentModel.PropertyChangedEventHandler

Implements#

System.ComponentModel.INotifyPropertyChanged