# Editor.InspectorWidget

When using [Editor.InspectorAttribute](/api/Editor.InspectorAttribute) with a type that inherits from InspectorWidget, when you inspect an object of that class, it will create an instance of the widget and display it in the inspector.

- Kind: class
- Namespace: `Editor`
- Assembly: `Sandbox.Tools`
- Inherits: [Editor.Widget](/api/Editor.Widget)
- Modifiers: abstract

## Constructors

- [`InspectorWidget`](/api/Editor.InspectorWidget/.ctor)

## Properties

- [`SerializedObject`](/api/Editor.InspectorWidget/SerializedObject)

## Methods

- [`CloseInspector`](/api/Editor.InspectorWidget/CloseInspector): Closes the inspector
- [`Create`](/api/Editor.InspectorWidget/Create): Creates an inspector widget for the given serialized object.
