跳转到内容

AnimatorTransition

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

Defined in: animation/Animator.ts:60

conditions: AnimatorCondition[]

Defined in: animation/Animator.ts:64

All conditions must hold (AND). Empty = unconditional.


optional duration?: number

Defined in: animation/Animator.ts:70

Seconds to blend from the state being left into the one being entered. Absent or 0 cuts. Honoured only where both motions can be sampled: a sprite sheet is switched, having nothing to be halfway between.


optional hasExitTime?: boolean

Defined in: animation/Animator.ts:76

Only fire once the current state’s clip has finished (a non-looping sprite clip reached its end). Combined with conditions, both must hold. With no conditions, this is “auto-advance when the clip ends” (e.g. attack→idle).


to: string

Defined in: animation/Animator.ts:62

Target state name.