Documentation

Unity Engine


Unity Engine


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

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.