Class AnimationHubIssueIndex
Pure lookup built once per scan from ModelAnimationValidator's findings: the worst severity anywhere in a row's own subtree, and the row's own findings. Kept out of AnimationHubUnityTabGui so the severity dot, the "issues only" filter and the expanded message list all read the same lookup instead of drifting apart into three copies of it.
Inherited Members
Namespace: Serenity.Editor.AnimationHub.Window
Assembly: Serenity.AnimationHub.Editor.dll
Syntax
public sealed class AnimationHubIssueIndex
Remarks
A row's key always nests its parent's key (AnimationHubRowKeys's Build...Key
methods), so every ancestor key is a literal RowKeySegmentSeparator-joined
prefix of a descendant's key. Recording a finding's severity against every prefix of its subject key is
what lets a collapsed Animator or Layer row surface a problem several levels below it without walking the
tree again.
Constructors
AnimationHubIssueIndex(IReadOnlyList<AuthoringIssue>)
Indexes every finding that names a row.
Declaration
public AnimationHubIssueIndex(IReadOnlyList<AuthoringIssue> issues)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<AuthoringIssue> | issues | The findings to index; a whole-asset finding (empty |
Fields
Empty
The empty index, for a tab drawn before anything has been scanned or validated.
Declaration
public static readonly AnimationHubIssueIndex Empty
Field Value
| Type | Description |
|---|---|
| AnimationHubIssueIndex |
Methods
IssuesFor(string)
This row's own findings, in the order they were reported — never a descendant's, so expanding a parent row does not repeat what its child row already shows.
Declaration
public IReadOnlyList<AuthoringIssue> IssuesFor(string rowKey)
Parameters
| Type | Name | Description |
|---|---|---|
| string | rowKey |
Returns
| Type | Description |
|---|---|
| IReadOnlyList<AuthoringIssue> |
WorstSeverity(string)
The worst finding on this row or anywhere beneath it — what a severity dot shows, and what an "issues only" filter tests.
Declaration
public AuthoringSeverity? WorstSeverity(string rowKey)
Parameters
| Type | Name | Description |
|---|---|---|
| string | rowKey |
Returns
| Type | Description |
|---|---|
| AuthoringSeverity? |