AnimatorState
此内容尚不支持你的语言。
Defined in: animation/Animator.ts:126
Properties
Section titled “Properties”blend?
Section titled “blend?”
optionalblend?:AnimatorBlend1D
Defined in: animation/Animator.ts:137
1D blend selection. Mutually exclusive with clip/spine/stateMachine.
optionalclip?:string
Defined in: animation/Animator.ts:135
Single sprite clip this state plays. Mutually exclusive with blend/spine/stateMachine.
optionalloop?:boolean
Defined in: animation/Animator.ts:150
motion?
Section titled “motion?”
optionalmotion?: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
rootMotion?
Section titled “rootMotion?”
optionalrootMotion?: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.
speed?
Section titled “speed?”
optionalspeed?:number
Defined in: animation/Animator.ts:149
spine?
Section titled “spine?”
optionalspine?:AnimatorSpineMotion
Defined in: animation/Animator.ts:139
Drive a Spine animation instead of a sprite clip.
stateMachine?
Section titled “stateMachine?”
optionalstateMachine?:AnimatorSubMachine
Defined in: animation/Animator.ts:141
Nested machine — makes this a container state (no motion of its own).
transitions
Section titled “transitions”transitions:
AnimatorTransition[]
Defined in: animation/Animator.ts:151
optionalx?:number
Defined in: animation/Animator.ts:153
Editor-only canvas position; the interpreter ignores it.
optionaly?:number
Defined in: animation/Animator.ts:154