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
Namespace: Unity.Simulation
Syntax
public class TimeLimit : MonoBehaviour
Fields
kMaximumTimeLimitInSeconds
The maxmimum time limit you can specify. Values will be clamped to this maximum.
Declaration
public const float kMaximumTimeLimitInSeconds = 14400F
Field Value
Type | Description |
---|---|
Single |
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 |
---|---|
Single |
timer
Timer source to use when measuring elapsed time.
Declaration
public Timer timer
Field Value
Type | Description |
---|---|
Timer |