s&box docs

public abstract class Editor.InspectorWidget : Editor.Widget

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.

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

Showing 3 methods

public bool CloseInspector(object newObj = null)

Closes the inspector

Parameters

  • newObj: Default: null

public static Editor.InspectorWidget Create(Sandbox.SerializedObject obj, System.Type ignore = null)

Creates an inspector widget for the given serialized object.

Parameters

  • ignore: Default: null

protected virtual bool OnInspectorClose(object newObj = null)

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

Parameters

  • newObj: Default: null

Properties

Showing 1 properties

Metadata

FieldValue
NamespaceEditor
Typeclass
AssemblySandbox.Tools
Doc IDT:Editor.InspectorWidget

On this page