logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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
    object
    SerenityHubFavoriteIcons
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Localization.Installation.Settings.Editor.Hub.Services
    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
    In this article
    © 2026 Serenity. All Rights Reserved