Struct TimeData
Encapsulates state to measure a World's simulation time.
Namespace: Unity.Core
Assembly: Unity.Entities.dll
Syntax
public readonly struct TimeData
Remarks
This data is most frequently read using Time. It is updated every frame by Unity.Entities.UpdateWorldTimeSystem. To temporarily override the time values, use SetTime(TimeData) or PushTime(TimeData).
Constructors
Name | Description |
---|---|
TimeData(double, float) | Create a new TimeData struct with the given values. |
Fields
Name | 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. |