TimeData
Encapsulates state to measure a World 's simulation time.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Struct
- Namespace: Unity.Core
- Assembly: UnityEngine.EntitiesModule
public readonly struct TimeData
Remarks
This data is most frequently read using Time. It is updated every frame by UpdateWorldTimeSystem. To temporarily override the time values, use World.SetTime or World.PushTime.
Fields
Value | Description |
|---|---|
| DeltaTime | The time in seconds since the last time-updating event occurred. (For example, a frame.) |
| ElapsedTime | The total cumulative elapsed time in seconds. |
Constructors
Constructor | Description |
|---|---|
| TimeData(System.Double,System.Single) | Create a new TimeData struct with the given values. |
Properties
Property | Description |
|---|---|
| fixedDeltaTime | Currently, an alias to Time.fixedDeltaTime. |