Skip to content

API Interface AnimatorStateInfo

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Interface: AnimatorStateInfo

Defined in: src/plugins/animation/runtime/types.ts:159

What Animator.state(layer) reports (ADR 0372).

Properties

name

readonly name: string;

Defined in: src/plugins/animation/runtime/types.ts:161

The active state's name ("" when the layer has none).


normalizedTime

readonly normalizedTime: number;

Defined in: src/plugins/animation/runtime/types.ts:165

The state's playhead in its main clip, 0–1 per cycle (it passes 1 for looping clips).


time

readonly time: number;

Defined in: src/plugins/animation/runtime/types.ts:163

Seconds since the state was entered.


transitioningTo

readonly transitioningTo: string | null;

Defined in: src/plugins/animation/runtime/types.ts:169

The state a transition is blending to, or null.


weight

readonly weight: number;

Defined in: src/plugins/animation/runtime/types.ts:167

The state's weight in the layer's output (below 1 while a transition blends it out).

Clone this wiki locally