API ReferenceEditor
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.
Constructors1
Showing 1 constructors
public InspectorWidget(Sandbox.SerializedObject so)
| Parameter | Type | Description |
|---|---|---|
| so | SerializedObject | — |
No results match this filter.
Methods3
Showing 3 methods
public bool CloseInspector(object newObj = null)
Closes the inspector
| Parameter | Type | Description |
|---|---|---|
| newObj = null | object | — |
Returns:
bool—public static Editor.InspectorWidget Create(Sandbox.SerializedObject obj, System.Type ignore = null)
Creates an inspector widget for the given serialized object.
| Parameter | Type | Description |
|---|---|---|
| obj | SerializedObject | — |
| ignore = null | Type | — |
protected virtual bool OnInspectorClose(object newObj = null)
Called when the inspector is about to be closed. Can return false to prevent closing.
| Parameter | Type | Description |
|---|---|---|
| newObj = null | object | — |
Returns:
bool—No results match this filter.
Properties1
Showing 1 properties
public Sandbox.SerializedObject Editor.InspectorWidget.SerializedObject { get; set; }
No results match this filter.