Skip to main content

AnimationSequenceController

type AnimationSequenceController = {
animationSequenceRef: AssetRef<AnimationSequence>;
entities: Record<UUID, EntityRef>;
playbackSpeed: Float;
startOffset: Float;
stopOffset: Float;
loop: boolean;
playState: Int32;
seekOffset: Float;
};

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

NameTypeDescription
animationSequenceRefAssetRef<AnimationSequence>A reference to an animation sequence.
entitiesRecord<UUID, EntityRef>Track to entity map. Key is track uuid, value is the entity to assign to it.
playbackSpeedFloatThe speed at which to play the animation sequence. The sequence will go in reverse if set to a value lower than 0.
startOffsetFloatThe normalized offset at which to start the playback.
stopOffsetFloatThe normalized offset at which to stop the playback (or loop back to start offset).
loopbooleanWhether or not the animation loops when it reaches the end of the sequence.
playStateInt32The play state of the animation.
seekOffsetFloatThe offset to seek at next frame. Must be in the [0, 1] range.