API ReferenceEditor
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.
Related Guides
Broader workflow and conceptual references connected to this API.
Constructors
Showing 1 constructors
public InspectorWidget(Sandbox.SerializedObject so)
No results match this filter.
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
No results match this filter.
Properties
Showing 1 properties
public Sandbox.SerializedObject Editor.InspectorWidget.SerializedObject { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Editor |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.InspectorWidget |