logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AnimationHubRowFormatting

    Pure string formatting for Animation Hub rows: row titles, motion summaries and the search-match test. Kept free of UnityEditor/UnityEngine so it is unit-testable without an EditorWindow — the tab and row GUI classes call into this rather than formatting inline.

    Inheritance
    object
    AnimationHubRowFormatting
    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.Window
    Assembly: Serenity.AnimationHub.Editor.dll
    Syntax
    public static class AnimationHubRowFormatting

    Methods

    FormatClipDuration(ClipEntry)

    A clip's own summary badge text: "1.20 s · loop".

    Declaration
    public static string FormatClipDuration(ClipEntry clip)
    Parameters
    Type Name Description
    ClipEntry clip
    Returns
    Type Description
    string

    FormatClipOriginBadge(ClipOrigin)

    The badge text for where a clip was found relative to the model.

    Declaration
    public static string FormatClipOriginBadge(ClipOrigin origin)
    Parameters
    Type Name Description
    ClipOrigin origin
    Returns
    Type Description
    string

    FormatMotionSummary(StateEntry, IReadOnlyList<ClipEntry>)

    The state's motion, summarized: "no motion", "blend tree", or (for a single clip, resolved against clips where possible) "clip Idle.anim · 1.20 s · loop".

    Declaration
    public static string FormatMotionSummary(StateEntry state, IReadOnlyList<ClipEntry> clips)
    Parameters
    Type Name Description
    StateEntry state
    IReadOnlyList<ClipEntry> clips
    Returns
    Type Description
    string

    FormatSourceKind(ModelSourceKind)

    The header's source-kind badge text: "prefab", "variant" or "imported model".

    Declaration
    public static string FormatSourceKind(ModelSourceKind sourceKind)
    Parameters
    Type Name Description
    ModelSourceKind sourceKind
    Returns
    Type Description
    string

    FormatStateTitle(StateEntry)

    The row title for a state: its path tail, or its full path when it has no separator.

    Declaration
    public static string FormatStateTitle(StateEntry state)
    Parameters
    Type Name Description
    StateEntry state
    Returns
    Type Description
    string

    FormatTransitionTitle(TransitionEntry)

    The row title for a transition, e.g. "Idle → Attack (hit)" or "Any State → Stun".

    Declaration
    public static string FormatTransitionTitle(TransitionEntry transition)
    Parameters
    Type Name Description
    TransitionEntry transition
    Returns
    Type Description
    string

    MatchesSearch(string, string)

    Whether title matches the search box's text. An empty search matches everything.

    Declaration
    public static bool MatchesSearch(string title, string search)
    Parameters
    Type Name Description
    string title
    string search
    Returns
    Type Description
    bool

    TailOf(string)

    The last '/'-separated segment of path, or path itself when it has none.

    Declaration
    public static string TailOf(string path)
    Parameters
    Type Name Description
    string path
    Returns
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved