Skip to content

API Interface AnimatorPlayOptions

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Interface: AnimatorPlayOptions

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

Options of Animator.play (ADR 0372).

Extends

Properties

align?

readonly align?: "start" | "hit";

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

What lands on the boundary: the clip's start (default) or its hit marker, as audio stingers do.

Inherited from

AnimatorMusicTiming.align


at?

readonly at?: "exit" | "beat" | "bar";

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

The music boundary to wait for.

Inherited from

AnimatorMusicTiming.at


fade?

readonly fade?: number;

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

Seconds to fade in over what is playing (default 0: a cut, inertialized).


layer?

readonly layer?: AnimatorLayer;

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

The layer of the implicit graph (default 0). Ignored with slot.


loop?

readonly loop?: boolean;

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

Loop the clip (default: the clip's own setting). A looping play's promise resolves only when stopped or interrupted.


music?

readonly music?: AudioPlaylistHandle;

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

The music the boundary belongs to (required with at).

Inherited from

AnimatorMusicTiming.music


normalizedTime?

readonly normalizedTime?: number;

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

Where to start, in normalised time (0–1, default 0).


section?

readonly section?: 
  | string
  | {
  end?: number;
  start: number;
};

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

With slot: the part of the clip to play. A name is a section of the clip (its cue marker of that name, up to the next cue or the clip's end); { start, end } are clip seconds (end left out: the clip's end).


slot?

readonly slot?: string;

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

A slot of the graph to play the clip in, as a one-shot over the graph (Unreal's slots and montages). Without it the clip plays on layer of the implicit graph (an Animator without a graph asset), or is refused with a warning when the Animator has a graph.


speed?

readonly speed?: number;

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

Playback speed (default 1; negative plays backward).

Clone this wiki locally