Class AnimationClipEditorPanel
The Animation Hub's in-hub clip editor: settings, curves, animation events and a rendered preview, drawn as a bottom pane by AnimationHubWindow when a clip is opened. A plain composition root over the existing engines plus this phase's own AnimationClipCurveCache and AnimationClipPreviewScrubber — its own logic is limited to the pure helpers on AnimationClipEditorPanelState in its own file.
Implements
Inherited Members
Namespace: Serenity.Editor.AnimationHub.Gui
Assembly: Serenity.AnimationHub.Editor.dll
Syntax
public sealed class AnimationClipEditorPanel : IAnimationClipEditor
Constructors
AnimationClipEditorPanel(Action, Action)
Declaration
public AnimationClipEditorPanel(Action repaintRequested, Action rescanRequested)
Parameters
| Type | Name | Description |
|---|---|---|
| Action | repaintRequested | Runs on any off-gesture state change (undo/redo, external curve edit, preview sample). |
| Action | rescanRequested | Runs after "Make Editable Copy" succeeds, since the window's own inventory is now stale. |
Properties
IsOpen
Declaration
public bool IsOpen { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
CanEdit(string, string)
A blocked Verdict still opens read-only; only an unresolvable path refuses.
Declaration
public bool CanEdit(string clipAssetPath, string clipSubAssetName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | clipAssetPath | |
| string | clipSubAssetName |
Returns
| Type | Description |
|---|---|
| bool |
Close()
Hides the pane and stops any preview; the last selection stays resolved for an instant reopen.
Declaration
public void Close()
Draw()
Declaration
public void Draw()
Open(string, string, string)
Opens the clip for editing. modelAssetPath may be empty when no model
context is available (a clip row reached from outside any specific model's controller).
Declaration
public void Open(string clipAssetPath, string clipSubAssetName, string modelAssetPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | clipAssetPath | |
| string | clipSubAssetName | |
| string | modelAssetPath |
Shutdown()
Releases what Enable(Action) subscribed. Called once from the host window's own teardown — never from Close(), which the user can trigger repeatedly.
Declaration
public void Shutdown()