Synced
InspectionDrawerAttribute.Constructor
Section titled “InspectionDrawerAttribute.Constructor”
- Creates an inspector drawer registration.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Inspection
Declaration
Section titled “Declaration”public Inno.Editor.Inspection.InspectionDrawerAttribute.InspectionDrawerAttribute(System.Type targetType, bool useForChildren = false, int priority = 0, bool conditional = false)Parameters
Section titled “Parameters”Parameter targetType: The selected object type handled by the drawer.
Parameter useForChildren: Whether the drawer may handle assignable derived target types.
Parameter priority: The tie-breaking priority after exactness and inheritance distance.
Parameter conditional: Whether CanInspect is a target-dependent predicate. Equally specific accepted peers remain an explicit ambiguity error.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when targetType is null.