| AddEvent(string, float, Action<ClipEventArgs>, bool) |
Adds a named event marker that fires when playback crosses the given time offset. Events are stored sorted by time. |
| AddEventAtFrame(string, int, Action<ClipEventArgs>, bool) |
Adds a named event marker that fires when playback reaches the given zero-based frame index. Unlike AddEvent(string, float, Action<ClipEventArgs>, bool), the resolved time is automatically kept up-to-date when any frame's Duration changes while it belongs to this clip. |
| AddFrame(SpriteFrame) |
Appends a frame to the end of the clip. |
| CaptureSnapshot() |
Captures a snapshot of this clip's mutable runtime state. Frame lists and events are not included; use Clone(string) for a full structural copy. |
| ClearEvents() |
Removes all event markers from this clip. |
| ClearFrames() |
Removes all frames from the clip. |
| Clone(string) |
Creates a shallow copy under a new name. Frames are shared, not deep copied. Event callbacks are not copied. |
| FromAtlasRegions(string, IReadOnlyList<AtlasRegion>, float, PlaybackMode) |
Creates an animation clip from a sequence of AtlasRegions. Each region becomes one frame; the frame's Texture is set to the region's AtlasTexture and SourceRect is set to the region's SourceRect. |
| FromSpriteSheet(string, int, int, int, int, int, int, float, PlaybackMode, string, ITexture) |
Creates an animation from a sprite sheet with uniform frame sizes. |
| InsertFrame(int, SpriteFrame) |
Inserts a frame at the specified index. |
| InvalidateDurationCache() |
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. |
| RemoveEvent(ClipEvent) |
Removes a specific event instance. Use this when multiple events share the same name. |
| RemoveEvent(string) |
Removes the first event with the given name. |
| RemoveFrame(SpriteFrame) |
Removes a specific frame from the clip. |
| RestoreSnapshot(AnimationClipSnapshot) |
Restores a previously captured snapshot. |