Class AnimationClipEditorPanelState
Pure, GUI-free logic pulled out of AnimationClipEditorPanel so it is unit
testable without instantiating any IMGUI state — the same "engine stays pure" split every other
Animation Hub phase draws between its Engine types and their GUI callers.
Inheritance
AnimationClipEditorPanelState
Assembly: Serenity.AnimationHub.Editor.dll
Syntax
public static class AnimationClipEditorPanelState
Methods
CanEditResolvedClip(AnimationClip)
The panel's IAnimationClipEditor.CanEdit answer, once the impure asset lookup
that produced resolvedClip is done.
Declaration
public static bool CanEditResolvedClip(AnimationClip resolvedClip)
Parameters
| Type |
Name |
Description |
| AnimationClip |
resolvedClip |
|
Returns
ClampScrubTimeForKeyAdd(float, float)
A negative or past-the-end scrub time (reachable via the slider during a clip-length
change) would otherwise seed a key off the curve's valid range.
Declaration
public static float ClampScrubTimeForKeyAdd(float scrubTime, float clipLength)
Parameters
| Type |
Name |
Description |
| float |
scrubTime |
|
| float |
clipLength |
|
Returns
MatchesSearch(BindingView, string)
Delegates to MatchesSearch(string, string) over the binding's
combined group/label text rather than re-implementing the same case-insensitive substring match.
Declaration
public static bool MatchesSearch(BindingView view, string search)
Parameters
Returns
ShouldRetargetAfterCopy(Result)
Whether a "Make Editable Copy" result should retarget the panel to the new copy.
Declaration
public static bool ShouldRetargetAfterCopy(AnimationClipCopyEngine.Result result)
Parameters
Returns