Skip to main content

AnimationSequenceController

@3dverse/livelink v0.8.10


@3dverse/livelink / Components / AnimationSequenceController

Type Alias: AnimationSequenceController

AnimationSequenceController: object

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:49

Animation sequence controller with reference to an animation sequence and assigned entities.

Type declaration

animationSequenceRef

animationSequenceRef: AssetRef<AnimationSequence>

A reference to an animation sequence.

entities

entities: Record<UUID, EntityRef>

Track to entity map. Key is track uuid, value is the entity to assign to it.

playbackSpeed

playbackSpeed: Float

The speed at which to play the animation sequence. The sequence will go in reverse if set to a value lower than 0.

Default Value

1;

startOffset

startOffset: Float

The normalized offset at which to start the playback.

Default Value

0;

stopOffset

stopOffset: Float

The normalized offset at which to stop the playback (or loop back to start offset).

Default Value

1;

loop

loop: boolean

Whether or not the animation loops when it reaches the end of the sequence.

Default Value

false;

playState

playState: Int32

The play state of the animation.

Default Value

0;

seekOffset

seekOffset: Float

The offset to seek at next frame. Must be in the [0, 1] range.

Default Value

-1;