Abstract Public SelfProtectedconstructorThe internal InspectorFieldContainer. Use the containter to register new fields in your inspector.
Returns the object the inspector is currently displaying. If the current object is a resource use inspectedResourcePath instead;
Returns the path to the resource the inspector is currently displaying.
Returns the main UI layout for the inspector.
Called when the inspector is first created. Loads the resource if required.
Path to the resource.
Initializes the inspector using an object instance. Must be called after construction.
UI panel to add the UI elements to.
Instance of the object whose fields to display UI for.
A set of properties that the inspector can read/write. They will be persisted even after the inspector is closed and restored when it is re-opened.
The UndoRedo stack to be used for this inspector. If null, UndoRedo will not be available.
Optionalwindow: EditorWindowBaseThe window that owns this inspector. Can be null.
OptionalisReadOnly: booleanDetermines if the inspector is read-only.
OptionalparentInspectableProperty: InspectablePropertyOptionaldepth: numberInitializes the inspector using a resource path. Must be called after construction.
Primary UI panel to add the UI elements to.
Path to the resource for which to display UI for.
A set of properties that the inspector can read/write. They will be persisted even after the inspector is closed and restored when it is re-opened.
The UndoRedo stack to be used for this inspector. If null, UndoRedo will not be available.
Optionalwindow: EditorWindowBaseThe window that owns this inspector. Can be null.
Loads a resource from it's path.
Path to the resource.
Notifies the inspector that it needs to be reinitialized on the next update loop.
This API fully reinitializes the inspectors and recreates all fields. This can have a negative impact on the user experience. In most circumstances notifyNeedsRefresh should be called instead, to only update the field data.
AbstractonCalled when the inspector is first created and fields must be registered.
Use the fields property to add fields for your custom inspector.
To automatically register all fields for an object use InspectorFieldContainer.addDefault and
pass your object to the function.
VirtualChecks if contents of the inspector have been modified, and updates them if needed.
OptionalisForced: booleanForces the UI fields to display the latest values assigned on the object.
State representing was anything modified between two last calls to refresh.
Immediately reinitializes the inspector, clears all contents and rebuilds the fields.
In most circumstances this API should not be called, instead use notifyNeedsRefresh to make the existing inspector fields refresh all their fields from the inspected object data.
To ensure correct behavior for higher level systems call notifyNeedsReinitalize to reinitialize the next frame to allow events to propagate fully in the current frame.
The CustomInspector class enables developers to implement custom inspection behavior by subclassing the class and adding the CustomInspectorAttribute to the class. The attribute denotes which types the CustomInspector implementation supports.
To add an inspector to your UILayout simply create an instance of UIInspector. The UIInspector class will automatically manage the creation of internal and CustomInspector instances.