LDKKeyframeTrack
typedef struct LDKKeyframeTrack{
u64 target_path;
u32 component_type;
char property_name[LDK_KEYFRAME_PROPERTY_NAME_CAPACITY];
LDKFieldType value_type;
LDKKeyframe *keys;
u32 count;
u32 capacity;
}LDKKeyframeTrack;
typedef struct LDKKeyframeTrack{
u64 target_path;
u32 component_type;
char property_name[LDK_KEYFRAME_PROPERTY_NAME_CAPACITY];
LDKFieldType value_type;
LDKKeyframe *keys;
u32 count;
u32 capacity;
}LDKKeyframeTrack;
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
);
LDKKeyframeAnimation *clipu64 pathu32 component_typeconst char *property_nameTrack index; existing track is reused, -1 if unavailable or unsupported. Note: Reflected component metadata must be registered when authoring.
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
);
const LDKKeyframeAnimation *clipu64 pathu32 component_typeconst char *property_nameZero-based track index, or -1 if not found.
Remove a track and all of its keyframes.
LDK_API bool ldk_keyframe_animation_track_remove(
LDKKeyframeAnimation *clip,
u32 track
);
LDKKeyframeAnimation *clipu32 trackTrue if the track existed. Later track indices shift.