Skip to content

AnimationOneShotOptions

Defined in: renderer/src/AnimationController.ts:22

Options for a one-shot play.

optional duration?: number

Defined in: renderer/src/AnimationController.ts:31

Explicit lock duration in seconds, replacing the automatic calculation.


optional onCancel?: () => void

Defined in: renderer/src/AnimationController.ts:35

Called when anything else ends the one-shot first.

void


optional onComplete?: () => void

Defined in: renderer/src/AnimationController.ts:33

Called when the one-shot plays out.

void


optional speed?: number

Defined in: renderer/src/AnimationController.ts:29

Playback multiplier for this one-shot only, on top of the controller’s speed. Finite and greater than 0. Default: 1.


optional startFrame?: number

Defined in: renderer/src/AnimationController.ts:24

Frame to start from (integer, 0 to the last frame). Default: 0.