Skip to content

Documentation / scene / AnimationControllerStateDefinition

Type Alias: AnimationControllerStateDefinition

AnimationControllerStateDefinition = object

Defined in: libs/scene/src/animation/animationcontroller.ts:21

Definition of a named animation controller state.

Properties

timeline

timeline: AnimationTimelineDefinition

Defined in: libs/scene/src/animation/animationcontroller.ts:25

Timeline executed when the controller enters this state.


responses?

optional responses?: AnimationTimelineEventResponse[]

Defined in: libs/scene/src/animation/animationcontroller.ts:30

Optional state-local responses evaluated after the active timeline does not handle a dispatched event.


transition?

optional transition?: number

Defined in: libs/scene/src/animation/animationcontroller.ts:35

Default cross-fade duration (seconds) applied when transitioning into this state. The outgoing state fades out and this state's first play step fades in over this time.

Released under the MIT License.