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
Name | Type | Description |
---|---|---|
animationSequenceRef | AssetRef <AnimationSequence > | A reference to an animation sequence. |
entities | Record <UUID , EntityRef > | Track to entity map. Key is track uuid, value is the entity to assign to it. |
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. |
startOffset | Float | The normalized offset at which to start the playback. |
stopOffset | Float | The normalized offset at which to stop the playback (or loop back to start offset). |
loop | boolean | Whether or not the animation loops when it reaches the end of the sequence. |
playState | Int32 | The play state of the animation. |
seekOffset | Float | The offset to seek at next frame. Must be in the [0, 1] range. |