AnimationOneShotOptions
Defined in: renderer/src/AnimationController.ts:22
Options for a one-shot play.
Properties
Section titled “Properties”duration?
Section titled “duration?”
optionalduration?:number
Defined in: renderer/src/AnimationController.ts:31
Explicit lock duration in seconds, replacing the automatic calculation.
onCancel?
Section titled “onCancel?”
optionalonCancel?: () =>void
Defined in: renderer/src/AnimationController.ts:35
Called when anything else ends the one-shot first.
Returns
Section titled “Returns”void
onComplete?
Section titled “onComplete?”
optionalonComplete?: () =>void
Defined in: renderer/src/AnimationController.ts:33
Called when the one-shot plays out.
Returns
Section titled “Returns”void
speed?
Section titled “speed?”
optionalspeed?: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.
startFrame?
Section titled “startFrame?”
optionalstartFrame?:number
Defined in: renderer/src/AnimationController.ts:24
Frame to start from (integer, 0 to the last frame). Default: 0.