AnimationClip.InvalidateDurationCache() Method
Definition¶
Namespace: Brine2D.Animation
Marks the TotalDuration cache as dirty, forcing a recompute on next access. Also re-resolves the times of any events registered via AddEventAtFrame(string, int, Action<ClipEventArgs>, bool) so that frame-index-based events remain accurate after a frame's Duration is mutated.
public void InvalidateDurationCache();