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¶
Plugin para añadir editores de propiedades personalizados en el inspector.
Descripción¶
These plugins allow adding custom property editors to EditorInspector.
Plugins are registered via EditorPlugin.add_inspector_plugin.
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.
Tutoriales¶
Métodos¶
void |
add_custom_control ( Control control ) |
void |
add_property_editor ( String property, Control editor ) |
void |
add_property_editor_for_multiple_properties ( String label, PoolStringArray properties, Control editor ) |
can_handle ( Object object ) virtual |
|
void |
parse_begin ( Object object ) virtual |
void |
parse_category ( Object object, String category ) virtual |
void |
parse_end ( ) virtual |
parse_property ( Object object, int type, String path, int hint, String hint_text, int usage ) virtual |
Descripciones de Métodos¶
void add_custom_control ( Control control )
Adds a custom control, which is not necessarily a property editor.
Adds a property editor for an individual property. The editor
control must extend EditorProperty.
void add_property_editor_for_multiple_properties ( String label, PoolStringArray properties, Control editor )
Adds an editor that allows modifying multiple properties. The editor
control must extend EditorProperty.
Devuelve true
si este objeto puede ser manejado por este plugin.
void parse_begin ( Object object ) virtual
Llamado para permitir la adición de controles al principio de la lista.
Llamado para permitir la adición de controles al principio de la categoría.
void parse_end ( ) virtual
Llamado para permitir la adición de controles al final de la lista.
bool parse_property ( Object object, int type, String path, int hint, String hint_text, int usage ) virtual
Llamado a permitir que se añadan editores de propiedades específicas al inspector. Normalmente estos heredan EditorProperty. Devolver true
elimina el editor incorporado para esta propiedad, de lo contrario permite insertar un editor personalizado antes del incorporado.