Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

TimeData

struct in Unity.Core

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Encapsulates state to measure a World's simulation time.

This data is most frequently read using World.Time. It is updated every frame by T:Unity.Entities.UpdateWorldTimeSystem. To temporarily override the time values, use World.SetTime or World.PushTime.

Properties

Property 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.
fixedDeltaTime Currently, an alias to Time.fixedDeltaTime.

Constructors

Constructor Description
TimeData Create a new TimeData struct with the given values.