Skip to content

API Interface AnimatorStopOptions

github-actions[bot] edited this page Nov 30, 2026 · 2 revisions

Interface: AnimatorStopOptions

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

Options of Animator.stop. With neither layer nor slot, every play and slot stops.

Properties

fade?

readonly fade?: number;

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

Seconds to fade out (default 0).


layer?

readonly layer?: AnimatorLayer;

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

Stop what plays on this layer of the implicit graph (on an Animator with a graph, without slot: ignored with a warning).


slot?

readonly slot?: string;

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

Stop the one-shot in this slot.

Clone this wiki locally