Function setAnimationTrackKeys
-
setAnimationTrackKeys(
group: AnimationGroup,
trackIndex: number,
keys: readonly AnimationCurveKey[],
options?: SetAnimationTrackKeysOptions,
): voidParameters
- group: AnimationGroup
- trackIndex: number
- keys: readonly AnimationCurveKey[]
Optionaloptions: SetAnimationTrackKeysOptions
Returns void
Replace a track's keys without changing the clip duration or playback range. Keys must be nonempty, ordered by strictly increasing nonnegative Float32 time, and within the original clip duration; every component must be finite. Cubic keys require both tangents, and other interpolations reject tangents. By default the edit affects every group or channel sharing the sampler. Property tracks can opt into detachment for adapter-owned independent editing. Changes take effect on the next evaluation or seek; they do not refresh previously baked VAT data.