:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/3.5/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/3.5/doc/classes/EditorInspectorPlugin.xml. .. _class_EditorInspectorPlugin: EditorInspectorPlugin ===================== **Inherits:** :ref:`Reference` **<** :ref:`Object` Plugin for adding custom property editors on inspector. Description ----------- ``EditorInspectorPlugin`` allows adding custom property editors to :ref:`EditorInspector`. When an object is edited, the :ref:`can_handle` function is called and must return ``true`` if the object type is supported. If supported, the function :ref:`parse_begin` will be called, allowing to place custom controls at the beginning of the class. Subsequently, the :ref:`parse_category` and :ref:`parse_property` are called for every category and property. They offer the ability to add custom controls to the inspector too. Finally, :ref:`parse_end` will be called. On each of these calls, the "add" functions can be called. To use ``EditorInspectorPlugin``, register it using the :ref:`EditorPlugin.add_inspector_plugin` method first. Tutorials --------- - :doc:`Inspector plugins <../tutorials/plugins/editor/inspector_plugins>` Methods ------- +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_custom_control` **(** :ref:`Control` control **)** | +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_property_editor` **(** :ref:`String` property, :ref:`Control` editor **)** | +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_property_editor_for_multiple_properties` **(** :ref:`String` label, :ref:`PoolStringArray` properties, :ref:`Control` editor **)** | +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`can_handle` **(** :ref:`Object` object **)** |virtual| | +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`parse_begin` **(** :ref:`Object` object **)** |virtual| | +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`parse_category` **(** :ref:`Object` object, :ref:`String` category **)** |virtual| | +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`parse_end` **(** **)** |virtual| | +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`parse_property` **(** :ref:`Object` object, :ref:`int` type, :ref:`String` path, :ref:`int` hint, :ref:`String` hint_text, :ref:`int` usage **)** |virtual| | +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Method Descriptions ------------------- .. _class_EditorInspectorPlugin_method_add_custom_control: - void **add_custom_control** **(** :ref:`Control` control **)** Adds a custom control, which is not necessarily a property editor. ---- .. _class_EditorInspectorPlugin_method_add_property_editor: - void **add_property_editor** **(** :ref:`String` property, :ref:`Control` editor **)** Adds a property editor for an individual property. The ``editor`` control must extend :ref:`EditorProperty`. ---- .. _class_EditorInspectorPlugin_method_add_property_editor_for_multiple_properties: - void **add_property_editor_for_multiple_properties** **(** :ref:`String` label, :ref:`PoolStringArray` properties, :ref:`Control` editor **)** Adds an editor that allows modifying multiple properties. The ``editor`` control must extend :ref:`EditorProperty`. ---- .. _class_EditorInspectorPlugin_method_can_handle: - :ref:`bool` **can_handle** **(** :ref:`Object` object **)** |virtual| Returns ``true`` if this object can be handled by this plugin. ---- .. _class_EditorInspectorPlugin_method_parse_begin: - void **parse_begin** **(** :ref:`Object` object **)** |virtual| Called to allow adding controls at the beginning of the list. ---- .. _class_EditorInspectorPlugin_method_parse_category: - void **parse_category** **(** :ref:`Object` object, :ref:`String` category **)** |virtual| Called to allow adding controls at the beginning of the category. ---- .. _class_EditorInspectorPlugin_method_parse_end: - void **parse_end** **(** **)** |virtual| Called to allow adding controls at the end of the list. ---- .. _class_EditorInspectorPlugin_method_parse_property: - :ref:`bool` **parse_property** **(** :ref:`Object` object, :ref:`int` type, :ref:`String` path, :ref:`int` hint, :ref:`String` hint_text, :ref:`int` usage **)** |virtual| Called to allow adding property specific editors to the inspector. Usually these inherit :ref:`EditorProperty`. Returning ``true`` removes the built-in editor for this property, otherwise allows to insert a custom editor before the built-in one. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`