Unity.Multiplayer.Tools.NetworkSimulator.Runtime.NetworkScenario
Base class to implement network scenarios, used to start, pause, and resume their behavior at runtime.
#
InheritanceSystem.Dynamic.ExpandoObject
System.Dynamic.ExpandoObject
System.Dynamic.ExpandoObject
System.Dynamic.ExpandoObject
#
Inherited MembersObject.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
#
Namespace: System.Dynamic.ExpandoObject#
Assembly: Tools.dll#
Syntax#
RemarksThis base class should be used for custom scenarios. If an frame update is desired, NetworkScenarioBehaviour instead. If an asynchronous task-based implementation is desired, NetworkScenarioTask instead.
#
Properties#
IsPausedPause state of the scenario. Returns true when the scenario is paused, false otherwise. Set to true to pause, set to false when paused to resume.
#
Declaration#
Property ValueType | Description |
---|---|
System.Boolean |
#
Methods#
Dispose()Disposes the scenario.
#
Declaration#
OnPause()Implement to define custom behaviour to be called when the scenario is paused.
#
Declaration#
OnResume()Implement to define custom behaviour to be called when the scenario is resumed.
#
Declaration#
Start(INetworkEventsApi)Starts running the underlying network scenario.
#
Declaration#
ParametersType | Name | Description |
---|---|---|
INetworkEventsApi | networkEventsApi | API to trigger network simulation events. |