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
AnimationHubRowFormatting
Assembly: Serenity.AnimationHub.Editor.dll
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
Returns
The badge text for where a clip was found relative to the model.
Declaration
public static string FormatClipOriginBadge(ClipOrigin origin)
Parameters
Returns
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
Returns
The header's source-kind badge text: "prefab", "variant" or "imported model".
Declaration
public static string FormatSourceKind(ModelSourceKind sourceKind)
Parameters
Returns
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
Returns
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
Returns
Whether title matches the search box's text. An empty search matches everything.
Declaration
public static bool MatchesSearch(string title, string search)
Parameters
Returns
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