文档

Unity Engine

Download Unity

Unity Engine

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

DeltaTimeThe time in seconds since the last time-updating event occurred. (For example, a frame.)
ElapsedTimeThe 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

fixedDeltaTimeCurrently, an alias to Time.fixedDeltaTime.