Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
EditorInspectorPlugin¶
Inherits: RefCounted < Object
Plugin for adding custom property editors on the inspector.
Description¶
EditorInspectorPlugin allows adding custom property editors to EditorInspector.
When an object is edited, the _can_handle function is called and must return true
if the object type is supported.
If supported, the function _parse_begin will be called, allowing to place custom controls at the beginning of the class.
Subsequently, the _parse_category and _parse_property 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.
To use EditorInspectorPlugin, register it using the EditorPlugin.add_inspector_plugin method first.
Tutorials¶
Methods¶
_can_handle ( Object object ) virtual const |
|
void |
_parse_begin ( Object object ) virtual |
void |
_parse_category ( Object object, String category ) virtual |
void |
_parse_end ( Object object ) virtual |
void |
_parse_group ( Object object, String group ) virtual |
_parse_property ( Object object, Variant.Type type, String name, PropertyHint hint_type, String hint_string, BitField<PropertyUsageFlags> usage_flags, bool wide ) virtual |
|
void |
add_custom_control ( Control control ) |
void |
add_property_editor ( String property, Control editor, bool add_to_end=false ) |
void |