Class TimeLimit
Component for limiting the simulation based on time. Add this component to a GameObject and set the time in seconds for how long you want the simulation to run.
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
Assembly: Unity.SimulationPro.Capture.dll
Syntax
public class TimeLimit : MonoBehaviour
Fields
TimeLimitInSeconds
The desired time limit in seconds. Once this limit is reached, the simulation will be shutdown.
Declaration
public float TimeLimitInSeconds
Field Value
| Type | Description |
|---|---|
| float |
kMaximumTimeLimitInSeconds
The maxmimum time limit you can specify. Values will be clamped to this maximum.
Declaration
public const float kMaximumTimeLimitInSeconds = 14400
Field Value
| Type | Description |
|---|---|
| float |
timer
Timer source to use when measuring elapsed time.
Declaration
public Timer timer
Field Value
| Type | Description |
|---|---|
| Timer |