EditorInspectorPlugin
Plugin for adding custom property editors on inspector.
This plugins allows adding custom property editors to .
Plugins are registered via EditorPlugin.add_inspector_plugin.
When an object is edited, the function is called and must return if the object type is supported.
Subsequently, the parse_category and are called for every category and property. They offer the ability to add custom controls to the inspector too.
Finally parse_end will be called.
On each of these calls, the “add” functions can be called.
Adds a custom control, not necessarily a property editor.
- void add_property_editor ( property, Control editor )
- void add_property_editor_for_multiple_properties ( label, PoolStringArray properties, editor )
Adds an editor that allows modifying multiple properties, this must inherit EditorProperty.
- can_handle ( Object object ) virtual
Returns if this object can be handled by this plugin.
Called to allow adding controls at the beginning of the list.
- void parse_category ( object, String category ) virtual
Called to allow adding controls at the beginning of the category.
- void parse_end ( ) virtual
Called to allow adding property specific editors to the inspector. Usually these inherit EditorProperty. Returning removes the built-in editor for this property, otherwise allows to insert a custom editor before the built-in one.