logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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
    object
    AnimationClipEditorPanelState
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Editor.AnimationHub.Gui
    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
    Type Description
    bool

    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
    Type Description
    float

    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
    Type Name Description
    BindingView view
    string search
    Returns
    Type Description
    bool

    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
    Type Name Description
    AnimationClipCopyEngine.Result result
    Returns
    Type Description
    bool
    In this article
    © 2026 Serenity. All Rights Reserved