EditorProperty¶
Inherits: Container < Control < CanvasItem < Node < Object
Custom control for editing properties that can be added to the EditorInspector.
Description¶
A custom control for editing properties that can be added to the EditorInspector. It is added via EditorInspectorPlugin.
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods¶
void |
_set_read_only ( bool read_only ) virtual |
void |
_update_property ( ) virtual |
void |
add_focusable ( Control control ) |
void |
emit_changed ( StringName property, Variant value, StringName field=&"", bool changing=false ) |
get_edited_property ( ) const |
|
void |
set_bottom_editor ( Control editor ) |
void |
update_property ( ) |
Signals¶
multiple_properties_changed ( PackedStringArray properties, Array value )
Emit it if you want multiple properties modified at the same time. Do not use if added via EditorInspectorPlugin._parse_property.
object_id_selected ( StringName property, int id )
Used by sub-inspectors. Emit it if what was selected was an Object ID.
property_can_revert_changed ( StringName property, bool can_revert )
Emitted when the revertability (i.e., whether it has a non-default value and thus is displayed with a revert icon) of a property has changed.
property_changed ( StringName property, Variant value, StringName field, bool changing )
Do not emit this manually, use the emit_changed method instead.
property_checked ( StringName property, bool checked )
Emitted when a property was checked. Used internally.
property_deleted ( StringName property )
Emitted when a property was deleted. Used internally.
property_keyed ( StringName property )
Emit it if you want to add this value as an animation key (check for keying being enabled first).
property_keyed_with_value ( StringName property, Variant value )
Emit it if you want to key a property with a single value.
property_pinned ( StringName property, bool pinned )
Emit it if you want to mark (or unmark) the value of a property for being saved regardless of being equal to the default value.
The default value is the one the property will get when the node is just instantiated and can come from an ancestor scene in the inheritance/instantiation chain, a script or a builtin class.
resource_selected ( String path, Resource resource )
If you want a sub-resource to be edited, emit this signal with the resource.
selected ( String path, int focusable_idx )
Emitted when selected. Used internally.
Property Descriptions¶
bool checkable = false
Used by the inspector, set to true
when the property is checkable.
bool checked = false
Used by the inspector, set to true
when the property is checked.