csharp
public sealed class OptionalEditorA checkbox and an editor, for a member that may have no value at all.
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 TagNameThe element name this type answers to when a caller does not choose one.
protected override bool AcceptsFocusWhether the focus can rest on this kind of control at all.
public CheckBox ToggleWhether the member has a value.
public UiElement? InnerThe editor for the value itself, built by whichever drawer owns the inner type.
public IPropertyDrawer? DrawerThat drawer, so refreshing can reach it.
Used by (1)
- OptionalDrawerVixen.Editor.Inspector