Vixen
02b45cc4
csharp
public sealed class InspectorTarget

An EditTarget whose properties are inspector fields.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

What markup binds against. A binding-path resolves through the base's Find, and the thing it hands back has to be the one an inspector row is built from — the reset button, the prefab override bar and the visibility all live on InspectorField rather than on EditProperty, and a <PropertyField> that had none of them would be visibly less than the row the generated inspector draws for the same member.

⚠ A subclass rather than a second lookup, so the caching still holds. EditTarget.TryFind keeps one binding per name precisely so a panel can subscribe to its Changed; building an InspectorField beside the cached EditProperty would give the panel an event nothing is ever raised on. That is the bug this type exists to make unavailable.

⚠ A member the descriptor did not describe falls back to the plain binding. A provider is free to answer with any IEditMember — a graph node's port, a settings file's key — and only an InspectorMember has the type default and the drawer hint an inspector row needs. Refusing would make this less capable than its base for no gain.

Fields and properties (1)

  • public InspectorDescriptor? Descriptor

    The description the fields are built against, if the type has one.

Methods (2)

Used by (3)

  • BrushInspectorMarkupTestsVixen.Editor.Terrain.Tests
  • InspectorViewVixen.Editor.Inspector
  • MarkupBindingTestsVixen.Editor.Inspector.Tests