Documentation

Unity Engine

Download Unity

Unity Engine

Time

The time this frame.
Read time 1 minuteLast updated 4 hours ago

Definition

public readonly DiscreteTime Time { get; }

Remarks

To move the timer to another time, call TimerStateExtensions.JumpToTime or TimerStateExtensions.Rewind. Those methods also wrap the time into TimerState.Range, apply TimerState.CycleOffset, and set TimerState.PreviousTime and TimerState.DeltaTime so that root motion and animation events don't count the skipped time.