Struct EditorInspectorPlugin

Plugin for adding custom property editors on inspector.

struct EditorInspectorPlugin ;

This plugins allows adding custom property editors to EditorInspector. Plugins are registered via EditorPlugin.addInspectorPlugin. When an object is edited, the canHandle function is called and must return true if the object type is supported. If supported, the function parseBegin will be called, allowing to place custom controls at the beginning of the class. Subsequently, the parseCategory and parseProperty are called for every category and property. They offer the ability to add custom controls to the inspector too. Finally parseEnd will be called. On each of these calls, the "add" functions can be called.

Methods

NameDescription
addCustomControl Adds a custom control, not necessarily a property editor.
addPropertyEditor Adds a property editor, this must inherit EditorProperty.
addPropertyEditorForMultipleProperties Adds an editor that allows modifying multiple properties, this must inherit EditorProperty.
canHandle Returns true if this object can be handled by this plugin.
parseBegin Called to allow adding controls at the beginning of the list.
parseCategory Called to allow adding controls at the beginning of the category.
parseEnd Called to allow adding controls at the end of the list.
parseProperty Called to allow adding property specific editors to the inspector. Usually these inherit EditorProperty. Returning true removes the built-in editor for this property, otherwise allows to insert a custom editor before the built-in one.