ldk_keyframe_animation_source_pause

Pause playback while retaining the current position.

LDK_API void ldk_keyframe_animation_source_pause(LDKEntity root);

Parameters

LDKEntity root
Root entity containing the animation source.

Returns

Nothing.

ldk_keyframe_animation_source_play

Start or resume the current animation and apply its current pose.

LDK_API bool ldk_keyframe_animation_source_play(LDKEntity root);

Parameters

LDKEntity root
Root entity containing the animation source.

Returns

True if a live clip is selected and the component is enabled.

ldk_keyframe_animation_source_seek

Set playback time and immediately evaluate the new pose without events.

LDK_API bool ldk_keyframe_animation_source_seek(
 LDKEntity root,
 float time
);

Parameters

LDKEntity root
Root entity containing the animation source.
float time
Time in seconds.

Returns

True if a live clip is selected. Time is clamped to its duration.

ldk_keyframe_animation_source_set_current

Select the animation index used for subsequent playback.

LDK_API bool ldk_keyframe_animation_source_set_current(
 LDKEntity root,
 i32 index
);

Parameters

LDKEntity root
Root entity containing the animation source.
i32 index
Zero-based animation index.

Returns

True for a valid index. Changing selection resets playback.

ldk_keyframe_animation_source_stop

Stop playback, seek to zero and apply the initial pose.

LDK_API void ldk_keyframe_animation_source_stop(LDKEntity root);

Parameters

LDKEntity root
Root entity containing the animation source.

Returns

Nothing. Does not restore the pre-animation component values.