Class TimeStepScheduler
Works in conjunction with TimeStepApplier to control the rate at which simulated time advances.
Each LateUpdate, the scheduler decides whether to request a time step based on the configured time step
size and any registered IPauseCondition instances.
Inherited Members
Object.GetEntityId()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.SimulationPro.Foundation.ClockManagement
Assembly: Unity.SimulationPro.Foundation.dll
Syntax
[RequireComponent(typeof(TimeStepApplier))]
[DisallowMultipleComponent]
public class TimeStepScheduler : MonoBehaviour
Methods
Add(IPauseCondition)
Manually add a pause condition, either because m_AutoRegisterSchedulables was set to false, or because the PauseCondition was created sometime after the simulation started
Declaration
public void Add(IPauseCondition pauseCondition)
Parameters
| Type | Name | Description |
|---|---|---|
| IPauseCondition | pauseCondition | The new condition to add |
Remove(IPauseCondition)
Manually remove a pause condition mid-simulation.
Declaration
public void Remove(IPauseCondition pauseCondition)
Parameters
| Type | Name | Description |
|---|---|---|
| IPauseCondition | pauseCondition | The pause condition to remove - must have been previously added. |