Class SerenityHubIcons
Resolves a catalog entry's icon with a deterministic, never-throwing fallback chain (spec §10, ADR-8):
the entry's own IconKey → a per-SerenityHubCategory default → a generic fallback icon.
A missing or misspelled icon key never blocks the rest of a card (title, description, launch action).
Inheritance
SerenityHubIcons
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
Syntax
public sealed class SerenityHubIcons
Constructors
SerenityHubIcons(Func<string, GUIContent>)
Declaration
public SerenityHubIcons(Func<string, GUIContent> resolveIconContent = null)
Parameters
| Type |
Name |
Description |
| Func<string, GUIContent> |
resolveIconContent |
|
Methods
Resolve(SerenityHubToolEntry)
Resolves the icon to render for entry, always returning a usable content.
Declaration
public GUIContent Resolve(SerenityHubToolEntry entry)
Parameters
Returns
| Type |
Description |
| GUIContent |
|