PlayOptions
Defined in: packages/three-flatland/src/animation/types.ts:38
Options for playing an animation.
Properties
Section titled “Properties”
optionalloop?:boolean
Defined in: packages/three-flatland/src/animation/types.ts:42
Override loop setting
onComplete?
Section titled “onComplete?”
optionalonComplete?: () =>void
Defined in: packages/three-flatland/src/animation/types.ts:46
Callback when animation completes (non-looping)
Returns
Section titled “Returns”void
onEvent?
Section titled “onEvent?”
optionalonEvent?: (event,frameIndex) =>void
Defined in: packages/three-flatland/src/animation/types.ts:52
Callback on frame event
Parameters
Section titled “Parameters”string
frameIndex
Section titled “frameIndex”number
Returns
Section titled “Returns”void
onFrame?
Section titled “onFrame?”
optionalonFrame?: (frameIndex,frame) =>void
Defined in: packages/three-flatland/src/animation/types.ts:50
Callback on frame change
Parameters
Section titled “Parameters”frameIndex
Section titled “frameIndex”number
Returns
Section titled “Returns”void
onLoop?
Section titled “onLoop?”
optionalonLoop?: (loopCount) =>void
Defined in: packages/three-flatland/src/animation/types.ts:48
Callback on each loop
Parameters
Section titled “Parameters”loopCount
Section titled “loopCount”number
Returns
Section titled “Returns”void
speed?
Section titled “speed?”
optionalspeed?:number
Defined in: packages/three-flatland/src/animation/types.ts:44
Override speed multiplier
startFrame?
Section titled “startFrame?”
optionalstartFrame?:number
Defined in: packages/three-flatland/src/animation/types.ts:40
Start from a specific frame