logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class HudArgumentOptionCatalog

    Discovers every IHudArgumentOptionProvider in the loaded assemblies, keyed by the parameter type each one serves.

    Inheritance
    object
    HudArgumentOptionCatalog
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.GameUi.Infrastructure.Editor.Builder
    Assembly: Serenity.UnityGameUi.Infrastructure.Editor.dll
    Syntax
    public static class HudArgumentOptionCatalog
    Remarks

    Mirrors HudMemberCatalog's scanning shape: a lazily-built, statically-cached list, dropped on InvalidateCaches() so a domain reload does not serve stale results. A provider only needs a public parameterless constructor and an interface implementation — no registry, no attribute, and no reference from this assembly back to whichever aggregate declares it.

    Methods

    InvalidateCaches()

    Clears the cached provider scan, so a domain reload does not serve stale results.

    Declaration
    public static void InvalidateCaches()

    TryGetProvider(Type, out IHudArgumentOptionProvider)

    Attempts to find the provider registered for targetType.

    Declaration
    public static bool TryGetProvider(Type targetType, out IHudArgumentOptionProvider provider)
    Parameters
    Type Name Description
    Type targetType

    The parameter type an argument field is being drawn for.

    IHudArgumentOptionProvider provider

    The matching provider, when one is registered.

    Returns
    Type Description
    bool

    true when a provider for targetType was found.

    In this article
    © 2026 Serenity. All Rights Reserved