.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the EditorProperty.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_EditorProperty: EditorProperty ============== **Inherits:** :ref:`Container` **<** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Custom control to edit properties for adding into the inspector Properties ---------- +-----------------------------+-----------------------------------------------------------+ | :ref:`bool` | :ref:`checkable` | +-----------------------------+-----------------------------------------------------------+ | :ref:`bool` | :ref:`checked` | +-----------------------------+-----------------------------------------------------------+ | :ref:`bool` | :ref:`draw_red` | +-----------------------------+-----------------------------------------------------------+ | :ref:`bool` | :ref:`keying` | +-----------------------------+-----------------------------------------------------------+ | :ref:`String` | :ref:`label` | +-----------------------------+-----------------------------------------------------------+ | :ref:`bool` | :ref:`read_only` | +-----------------------------+-----------------------------------------------------------+ Methods ------- +-----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_focusable` **(** :ref:`Control` control **)** | +-----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`emit_changed` **(** :ref:`String` property, :ref:`Variant` value, :ref:`String` field="", :ref:`bool` changing=false **)** | +-----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Object` | :ref:`get_edited_object` **(** **)** | +-----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_edited_property` **(** **)** | +-----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_tooltip_text` **(** **)** const | +-----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_bottom_editor` **(** :ref:`Control` editor **)** | +-----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`update_property` **(** **)** virtual | +-----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Signals ------- .. _class_EditorProperty_signal_multiple_properties_changed: - **multiple_properties_changed** **(** :ref:`PoolStringArray` properties, :ref:`Array` value **)** Emit yourself if you want multiple properties modified at the same time. Do not use if added via :ref:`EditorInspectorPlugin.parse_property` .. _class_EditorProperty_signal_object_id_selected: - **object_id_selected** **(** :ref:`String` property, :ref:`int` id **)** Used by sub-inspectors. Emit if what was selected was an Object ID. .. _class_EditorProperty_signal_property_changed: - **property_changed** **(** :ref:`String` property, :ref:`Nil` value **)** Do not emit this manually, use the :ref:`emit_changed` method instead. .. _class_EditorProperty_signal_property_checked: - **property_checked** **(** :ref:`String` property, :ref:`String` bool **)** Used internally, when a property was checked. .. _class_EditorProperty_signal_property_keyed: - **property_keyed** **(** :ref:`String` property **)** Emit if you want to add this value as an animation key (check keying being enabled first). .. _class_EditorProperty_signal_property_keyed_with_value: - **property_keyed_with_value** **(** :ref:`String` property, :ref:`Nil` value **)** Emit if you want to key a property with a single value. .. _class_EditorProperty_signal_resource_selected: - **resource_selected** **(** :ref:`String` path, :ref:`Resource` resource **)** If you want a sub-resource to be edited, emit this signal with the resource. .. _class_EditorProperty_signal_selected: - **selected** **(** :ref:`String` path, :ref:`int` focusable_idx **)** Internal, used when selected. Description ----------- This control allows property editing for one or multiple properties into :ref:`EditorInspector`. It is added via :ref:`EditorInspectorPlugin`. Property Descriptions --------------------- .. _class_EditorProperty_property_checkable: - :ref:`bool` **checkable** +----------+----------------------+ | *Setter* | set_checkable(value) | +----------+----------------------+ | *Getter* | is_checkable() | +----------+----------------------+ Used by the inspector, set when property is checkable. .. _class_EditorProperty_property_checked: - :ref:`bool` **checked** +----------+--------------------+ | *Setter* | set_checked(value) | +----------+--------------------+ | *Getter* | is_checked() | +----------+--------------------+ Used by the inspector, when the property is checked. .. _class_EditorProperty_property_draw_red: - :ref:`bool` **draw_red** +----------+---------------------+ | *Setter* | set_draw_red(value) | +----------+---------------------+ | *Getter* | is_draw_red() | +----------+---------------------+ Used by the inspector, when the property must draw with error color. .. _class_EditorProperty_property_keying: - :ref:`bool` **keying** +----------+-------------------+ | *Setter* | set_keying(value) | +----------+-------------------+ | *Getter* | is_keying() | +----------+-------------------+ Used by the inspector, when the property can add keys for animation/ .. _class_EditorProperty_property_label: - :ref:`String` **label** +----------+------------------+ | *Setter* | set_label(value) | +----------+------------------+ | *Getter* | get_label() | +----------+------------------+ Set this property to change the label (if you want to show one) .. _class_EditorProperty_property_read_only: - :ref:`bool` **read_only** +----------+----------------------+ | *Setter* | set_read_only(value) | +----------+----------------------+ | *Getter* | is_read_only() | +----------+----------------------+ Used by the inspector, when the property is read-only. Method Descriptions ------------------- .. _class_EditorProperty_method_add_focusable: - void **add_focusable** **(** :ref:`Control` control **)** If any of the controls added can gain keyboard focus, add it here. This ensures that focus will be restored if the inspector is refreshed. .. _class_EditorProperty_method_emit_changed: - void **emit_changed** **(** :ref:`String` property, :ref:`Variant` value, :ref:`String` field="", :ref:`bool` changing=false **)** If one (or many properties) changed, this must be called. "Field" is used in case your editor can modify fields separately (as an example, Vector3.x). The "changing" argument avoids the editor requesting this property to be refreshed (leave as false if unsure). .. _class_EditorProperty_method_get_edited_object: - :ref:`Object` **get_edited_object** **(** **)** Get the edited object. .. _class_EditorProperty_method_get_edited_property: - :ref:`String` **get_edited_property** **(** **)** Get the edited property. If your editor is for a single property (added via :ref:`EditorInspectorPlugin.parse_property`), then this will return it.. .. _class_EditorProperty_method_get_tooltip_text: - :ref:`String` **get_tooltip_text** **(** **)** const Override if you want to allow a custom tooltip over your property. .. _class_EditorProperty_method_set_bottom_editor: - void **set_bottom_editor** **(** :ref:`Control` editor **)** Add controls with this function if you want them on the bottom (below the label). .. _class_EditorProperty_method_update_property: - void **update_property** **(** **)** virtual When this virtual function is called, you must update your editor.