ldk_keyframe_animation_track_add

Create a track for an editable reflected component field.

LDK_API i32 ldk_keyframe_animation_track_add(
 LDKKeyframeAnimation *clip,
 u64 path,
 u32 component_type,
 const char *property_name
);

Parameters

LDKKeyframeAnimation *clip
Animation clip instance.
u64 path
Hash relative to the animation source root.
u32 component_type
Runtime ECS component type.
const char *property_name
Persistent reflected field identifier.

Returns

Track index; existing track is reused, -1 if unavailable or unsupported. Note: Reflected component metadata must be registered when authoring.

ldk_keyframe_animation_track_find

Find a track identified by relative path and reflected field.

LDK_API i32 ldk_keyframe_animation_track_find(
 const LDKKeyframeAnimation *clip,
 u64 path,
 u32 component_type,
 const char *property_name
);

Parameters

const LDKKeyframeAnimation *clip
Animation clip instance.
u64 path
Hash relative to the animation source root.
u32 component_type
Runtime ECS component type.
const char *property_name
Persistent reflected field identifier.

Returns

Zero-based track index, or -1 if not found.

ldk_keyframe_animation_track_remove

Remove a track and all of its keyframes.

LDK_API bool ldk_keyframe_animation_track_remove(
 LDKKeyframeAnimation *clip,
 u32 track
);

Parameters

LDKKeyframeAnimation *clip
Animation clip instance.
u32 track
Zero-based track index or track description.

Returns

True if the track existed. Later track indices shift.