Skip to main content

NaughtyInspector

14 tools in this family (folder Editor/Tools/NaughtyInspector/ in the bridge package). Effect: writes changes the project or the scene, read-only does not, destructive deletes or overwrites and the client asks before running it.

ToolEffectDescription
inspector_attr_apply_attributewritesGeneric inserter for any Naughty inspector attribute. Renders the attribute line
inspector_attr_compare_with_inspector_groupread-onlyScan a .cs file for inspector attributes from both libraries (Naughty* and
inspector_attr_decorate_classwritesBulk-apply Naughty inspector attributes to every field in a class file using
inspector_attr_generate_buttonwritesAppend a private method decorated with [NaughtyButton] to the named class. The
inspector_attr_list_attributesread-onlyEnumerate every Naughty inspector attribute Buril supports, with kind, C# name,
inspector_attr_remove_attributewritesRemove all matching Naughty attribute lines directly above the named field.
inspector_attr_setup_conditionalwritesAdd ShowIf / HideIf / EnableIf / DisableIf to a field, referencing a sibling
inspector_attr_setup_curve_rangewritesAdd [NaughtyCurveRange] to an AnimationCurve field. Optionally bounds the X/Y
inspector_attr_setup_enum_flagswritesAdd [NaughtyEnumFlags] to an enum field — renders a multi-select mask popup instead
inspector_attr_setup_min_max_sliderwritesAdd [NaughtyMinMaxSlider(min, max)] to a Vector2 field. Renders a dual-handle
inspector_attr_setup_pickerwritesAdd a project-resource picker to a field: 'Layer' (int → Layer dropdown), 'Tag'
inspector_attr_setup_progress_barwritesAdd [NaughtyProgressBar] to a numeric field. Supply either 'max' (literal float)
inspector_attr_setup_validationwritesAdd a validator attribute to a field. Kinds: 'Required' (Object ref must not be
inspector_attr_validate_classread-onlyRun reflection-based validation on a Component instance in the open scene.