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
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.didStart
MonoBehaviour.didAwake
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponentIndex()
Component.CompareTag(TagHandle)
Component.transform
Component.transformHandle
Component.gameObject
Component.tag
Object.GetEntityId()
Object.GetInstanceID()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags
Namespace: Unity.Simulation
Assembly: Unity.Simulation.Core.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 |