InspectorWidgetclass

When using `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.

objectWidgetInspectorWidget
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public abstract class Editor.InspectorWidget : Editor.Widget

Constructors1

Showing 1 constructors

Methods3

Showing 3 methods

public bool CloseInspector(object newObj = null)PUBLIC

Closes the inspector

ParameterTypeDescription
newObj = nullobject
Returns:bool

protected virtual bool OnInspectorClose(object newObj = null)PROTECTEDVIRTUAL

Called when the inspector is about to be closed. Can return false to prevent closing.

ParameterTypeDescription
newObj = nullobject
Returns:bool

Properties1

Showing 1 properties

On this page