Api Editor InspectorWidget
class

InspectorWidget

public abstract class InspectorWidget : Widget

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

Constructors

InspectorWidget(SerializedObject so)

Properties

Name Type Description
SerializedObject SerializedObject

Methods

Boolean CloseInspector(Object newObj = null)

Closes the inspector

newObj
static InspectorWidget Create(SerializedObject obj, Type ignore = null)

Creates an inspector widget for the given serialized object.

obj
ignore
Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.InspectorWidget