Documentation

Unity Engine

Download Unity

Unity Engine

TimerState

Data used to represent the current state of an animation timer.
Read time 1 minuteLast updated 3 hours ago

Definition

public struct TimerState

Fields

Value

Description

CycleOffsetThe point of the cycle where the timer starts, as a fraction of TimerState.Range duration.
RangeDetermines what is the valid time range.
TimeScaleThe time scale of the timer.
WrapModeHow the timer treats time outside of its range.

Properties

Property

Description

DeltaTimeThe delta time this frame.
IsPlayingWhether the timer advances on the next TimerStateExtensions.Update.
LoopCountThe number of times this has been looped in total until the current frame (included)
NextPlayStateThe play state that the timer takes on the next update.
PlayStateThe play state for the current frame.
PreviousLoopCountThe number of times this has been looped in total until the previous frame (included)
PreviousPlayStateThe play state on the previous frame.
PreviousTimeThe time on the previous frame.
TimeThe time this frame.

Static Methods

Method

Description

CreateCreates a playing timer at the start of a range.