Skip to content

AnimationStateMachine.StateTimer Property

Definition

Namespace: Brine2D.Animation

Gets the elapsed time in seconds the current state has been active. Only advances while IsPlaying is true, so pausing the animator also freezes this timer. Resets whenever a new animation starts \(including via direct [Play\(string, bool\)](../SpriteAnimator/Play(string,bool).md 'Brine2D.Animation.SpriteAnimator.Play\(string, bool\)') calls).

C#
public float StateTimer { get; }

Property Value

System.Single