Documentation / scene / AnimationControllerSetStateOptions
Type Alias: AnimationControllerSetStateOptions
AnimationControllerSetStateOptions =
object
Defined in: libs/scene/src/animation/animationcontroller.ts:42
Options used when switching the controller to another state.
Properties
transition?
optionaltransition?:number
Defined in: libs/scene/src/animation/animationcontroller.ts:44
Cross-fade duration (seconds). Overrides the target state's own transition.
sync?
optionalsync?:AnimationPlaybackSyncOptions
Defined in: libs/scene/src/animation/animationcontroller.ts:49
Optional phase synchronization source applied to entry play steps that do not already define their own options.sync.
force?
optionalforce?:boolean
Defined in: libs/scene/src/animation/animationcontroller.ts:51
Re-enter the state even if it is already current. Defaults to false (no-op on same state).
stop?
optionalstop?:StopAnimationOptions
Defined in: libs/scene/src/animation/animationcontroller.ts:53
Stop options for the outgoing state when no cross-fade is used.
returnTo?
optionalreturnTo?:AnimationTimelineStateReturnTarget
Defined in: libs/scene/src/animation/animationcontroller.ts:60
Optional state to enter when the target state completes.
Use true to return to the state active before this transition, or a string to return to a specific named state.
returnTransition?
optionalreturnTransition?:number
Defined in: libs/scene/src/animation/animationcontroller.ts:66
Optional transition duration used when returning from the target state.
If omitted, the return state's own transition setting is used.