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.
Inherited Members
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 |
| string | label | Section heading. |
| bool | isOptional | Whether the binding may be left empty. |