TimeData
Encapsulates state to measure a World 's simulation time.
阅读时间1 分钟最后更新于 19 天前
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. |