Vixen
02b45cc4
csharp
public sealed class OptionalEditor

A checkbox and an editor, for a member that may have no value at all.

Read the guide page for this →

Remarks

⚠ State on the element rather than on the drawer, the reason CompositeEditor gives: a drawer is registered once and drawn for every row of every inspector in the process.

Fields and properties (5)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • protected override bool AcceptsFocus

    Whether the focus can rest on this kind of control at all.

  • public CheckBox Toggle

    Whether the member has a value.

  • public UiElement? Inner

    The editor for the value itself, built by whichever drawer owns the inner type.

  • public IPropertyDrawer? Drawer

    That drawer, so refreshing can reach it.

Used by (1)

  • OptionalDrawerVixen.Editor.Inspector