logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class HudBindingInspectorGui

    Draws the editor for one HUD binding: where the value comes from, and the chain of reads that turns it into something displayable.

    Inheritance
    object
    HudBindingInspectorGui
    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 HudBindingInspectorGui
    Remarks

    Each step's dropdown is built from the type the previous step produced, so the chain can only ever be authored into shapes that actually resolve. That is what makes GetSnapshot(weaponId) then CurrentAmmo discoverable instead of something a designer has to know by heart.

    Methods

    Draw(SerializedProperty, string, bool)

    Draws a binding editor.

    Declaration
    public static void Draw(SerializedProperty bindingProperty, string label, bool isOptional)
    Parameters
    Type Name Description
    SerializedProperty bindingProperty

    The serialized UnityHudBinding.

    string label

    Section heading.

    bool isOptional

    Whether the binding may be left empty.

    In this article
    © 2026 Serenity. All Rights Reserved