Struct TimeData
Encapsulates state to measure a World's simulation time.
Namespace: Unity.Core
Assembly: solution.dll
Syntax
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 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. |