ldk_keyframe_animation_source_add
Append a live animation asset to an entity animation source.
LDK_API bool ldk_keyframe_animation_source_add(
LDKEntity root,
LDKAssetKeyframeAnimation animation
);
Returns
True if appended. Does not transfer ownership of the asset.
ldk_keyframe_animation_source_remove
Detach an asset at the given index from an animation source.
LDK_API bool ldk_keyframe_animation_source_remove(
LDKEntity root,
u32 index
);
Parameters
LDKEntity root
- Root entity containing the animation source.
u32 index
- Zero-based animation index.
Returns
True if removed. Does not unload the asset.
ldk_keyframe_animation_source_replace
Replace a source animation entry with another live animation asset.
LDK_API bool ldk_keyframe_animation_source_replace(
LDKEntity root,
u32 index,
LDKAssetKeyframeAnimation animation
);
Parameters
LDKEntity root
- Root entity containing the animation source.
u32 index
- Zero-based animation index.
LDKAssetKeyframeAnimation animation
- Live asset handle; remains owned by the asset manager.
Returns
True on success. Replacing the active entry resets playback.