Class SerenityHubFavoriteIcons
Resolves the star icon a SerenityHubToolCard's favorite toggle renders, with the
same deterministic, never-throwing fallback chain SerenityHubIcons uses for catalog entries
(UX feedback batch 9, fix 3): a primary built-in icon key, then an alternate key for skins/versions where the
primary is unavailable, then a blank UnityEngine.GUIContent as the last resort so the toggle itself is
still functional even if no built-in star icon resolves.
Inheritance
SerenityHubFavoriteIcons
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
Syntax
public sealed class SerenityHubFavoriteIcons
Constructors
SerenityHubFavoriteIcons(Func<string, GUIContent>)
Declaration
public SerenityHubFavoriteIcons(Func<string, GUIContent> resolveIconContent = null)
Parameters
| Type |
Name |
Description |
| Func<string, GUIContent> |
resolveIconContent |
|
Methods
Resolve(bool)
Resolves the star icon for the given favorite state, always returning a usable content.
Declaration
public GUIContent Resolve(bool isFavorite)
Parameters
| Type |
Name |
Description |
| bool |
isFavorite |
|
Returns
| Type |
Description |
| GUIContent |
|