Class AnimationHubRowGui
Small adapter over Serenity.Global.Infrastructure.Editor.SerenityListRowGui for the Animation Hub's tree rows: adds a depth indent, a severity dot, a Ping action, and — since the authoring phase — an optional trailing strip of caller-owned actions. The tab GUI never talks to Serenity.Global.Infrastructure.Editor.SerenityListRowGui directly, so its own action list stays a plain label/tooltip/enabled triple without touching row layout.
Inherited Members
Namespace: Serenity.Editor.AnimationHub.Window
Assembly: Serenity.AnimationHub.Editor.dll
Syntax
public static class AnimationHubRowGui
Methods
Draw(int, bool, string, IReadOnlyList<Badge>, bool, bool, bool, AuthoringSeverity?, IReadOnlyList<Action>)
Draws one indented row with an optional Ping action and, since the Animation Hub's authoring phase, an optional trailing strip of caller-owned actions (Create Controller, + State, Default/Rename/Delete/Clip…) — Ping always comes first so its index never shifts.
Declaration
public static AnimationHubRowGui.Result Draw(int depth, bool expanded, string title, IReadOnlyList<SerenityListRowGui.Badge> badges, bool foldable, bool showPingAction, bool pingEnabled, AuthoringSeverity? severity = null, IReadOnlyList<SerenityListRowGui.Action> extraActions = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | depth | Indent level; each level adds 14px via GUILayout.Space(float). |
| bool | expanded | Whether the row is currently expanded (ignored when not foldable). |
| string | title | The row's title. |
| IReadOnlyList<SerenityListRowGui.Badge> | badges | At-a-glance metadata shown beside the title. |
| bool | foldable | Whether the title toggles expansion, or the row is a plain leaf. |
| bool | showPingAction | Whether to draw the Ping button. |
| bool | pingEnabled | Whether the Ping button can be pressed (e.g. a resolvable asset path exists). |
| AuthoringSeverity? | severity | The worst validator finding about this row, or null when there is none. |
| IReadOnlyList<SerenityListRowGui.Action> | extraActions | Authoring actions drawn after Ping, or null/empty for none. |
Returns
| Type | Description |
|---|---|
| AnimationHubRowGui.Result |
PingAsset(string)
Selects and pings the asset at assetPath, ignoring an unresolved path.
Declaration
public static void PingAsset(string assetPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | assetPath |