跳转到内容

AnimatorState

此内容尚不支持你的语言。

Defined in: animation/Animator.ts:132

optional blend?: AnimatorBlend1D

Defined in: animation/Animator.ts:143

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


optional clip?: string

Defined in: animation/Animator.ts:141

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


optional loop?: boolean

Defined in: animation/Animator.ts:156


optional motion?: AnimatorMotion

Defined in: animation/Animator.ts:139

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:133


optional rootMotion?: boolean

Defined in: animation/Animator.ts:154

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:155


optional spine?: AnimatorSpineMotion

Defined in: animation/Animator.ts:145

Drive a Spine animation instead of a sprite clip.


optional stateMachine?: AnimatorSubMachine

Defined in: animation/Animator.ts:147

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


transitions: AnimatorTransition[]

Defined in: animation/Animator.ts:157


optional x?: number

Defined in: animation/Animator.ts:159

Editor-only canvas position; the interpreter ignores it.


optional y?: number

Defined in: animation/Animator.ts:160