EditorInspector
A control used to edit properties of an object.
This is the control that implements property editing in the editor’s Settings dialogs, the Inspector dock, etc. To get the used in the editor’s Inspector dock, use .
EditorInspector
will show properties in the same order as the array returned by Object.get_property_list.
If a property’s name is path-like (i.e. if it contains forward slashes), EditorInspector
will create nested sections for “directories” along the path. For example, if a property is named highlighting/gdscript/node_path_color
, it will be shown as “Node Path Color” inside the “GDScript” section nested inside the “Highlighting” section.
If a property has usage, it will group subsequent properties whose name starts with the property’s hint string. The group ends when a property does not start with that hint string or when a new group starts. An empty group name effectively ends the current group. will create a top-level section for each group. For example, if a property with group usage is named Collide With
and its hint string is collide_with_
, a subsequent collide_with_area
property will be shown as “Area” inside the “Collide With” section.
Note: Unlike sections created from path-like property names, won’t capitalize the name for sections created from groups. So properties with group usage usually use capitalized names instead of snake_cased names.
void | refresh ( ) |
- object_id_selected ( int id )
Emitted when the Edit button of an has been pressed in the inspector. This is mainly used in the remote scene tree inspector.
- property_edited ( String property )
Emitted when a property is edited in the inspector.
- property_selected ( property )
Emitted when a property is selected in the inspector.
- property_toggled ( String property, checked )
Emitted when a boolean property is toggled in the inspector.
Note: This signal is never emitted if the internal autoclear
property enabled. Since this property is always enabled in the editor inspector, this signal is never emitted by the editor itself.
- resource_selected ( Object res, prop )
Emitted when a resource is selected in the inspector.
Emitted when a property that requires a restart to be applied is edited in the inspector. This is only used in the Project Settings and Editor Settings.
- void refresh ( )
Refreshes the inspector.