logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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
    object
    SerenityHubIcons
    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 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
    Type Name Description
    SerenityHubToolEntry entry
    Returns
    Type Description
    GUIContent
    In this article
    © 2026 Serenity. All Rights Reserved