Skip to content

AnimatorState

Defined in: animation/Animator.ts:126

optional blend?: AnimatorBlend1D

Defined in: animation/Animator.ts:137

1D blend selection. Mutually exclusive with clip/spine/stateMachine.


optional clip?: string

Defined in: animation/Animator.ts:135

Single sprite clip this state plays. Mutually exclusive with blend/spine/stateMachine.


optional loop?: boolean

Defined in: animation/Animator.ts:150


optional motion?: AnimatorMotion

Defined in: animation/Animator.ts:133

What this state plays, of any registered kind (sprite, timeline, a blend over either). Takes precedence over the single-kind fields below, which are the same thing spelled for one kind and are migrated to this.


name: string

Defined in: animation/Animator.ts:127


optional rootMotion?: boolean

Defined in: animation/Animator.ts:148

This state’s motion states where the CHARACTER goes, not how it is posed: its root track leaves the pose and becomes a request on AnimatorRootMotion. Per state, because a locomotion state is stick-driven and a lunge is not, and the export cannot say which.


optional speed?: number

Defined in: animation/Animator.ts:149


optional spine?: AnimatorSpineMotion

Defined in: animation/Animator.ts:139

Drive a Spine animation instead of a sprite clip.


optional stateMachine?: AnimatorSubMachine

Defined in: animation/Animator.ts:141

Nested machine — makes this a container state (no motion of its own).


transitions: AnimatorTransition[]

Defined in: animation/Animator.ts:151


optional x?: number

Defined in: animation/Animator.ts:153

Editor-only canvas position; the interpreter ignores it.


optional y?: number

Defined in: animation/Animator.ts:154