public static class InspectorRowsBuilds one member's row: the label, the drawer's editor, and the reset button.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Shared because there are now three callers rather than one. InspectorView builds the rows of the inspected type; a nested-object drawer builds the rows of a member's own type; a list drawer builds one per element. All three want the same row — a label, a tooltip, an editor from whichever drawer resolved, a reset button that appears only when there is something to reset to — and three copies of it is how a fix to one of them stops applying to the other two.
⚠ The two marks are different questions and both are here. "Differs from the type's default" is what the reset button answers; "differs from the prefab this came from" is what the override bar answers, and an object can be either without being the other.
Methods (3)
public static InspectorRow? Add(UiElement parent, InspectorField field, DrawerRegistry drawers, Action<InspectorRow>? built = null)Builds a row for a member, if anything can draw it and it is visible at all.
public static void Show(InspectorRow row)Reads a row's editor back off the objects.
public static void Restate(InspectorRow row)Shows the reset button only when there is something to reset to.
Used by (6)
- AssetFieldDropVixen.Editor.App
- ComponentsViewVixen.Editor.App
- InspectorViewVixen.Editor.Inspector
- ListDrawerVixen.Editor.Inspector
- NestedDrawerVixen.Editor.Inspector
- PropertyFieldVixen.Editor.Inspector