class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectNodeCanvasItemControlContainerScrollContainer 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 EditorInspector used in the editor's Inspector dock, use EditorInterface.get_inspector().

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 @GlobalScope.PROPERTY_USAGE_GROUP 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. EditorInspector 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. There is also a special case: when the hint string contains the name of a property, that property is grouped too. This is mainly to help grouping properties like font, font_color and font_size (using the hint string font_).

If a property has @GlobalScope.PROPERTY_USAGE_SUBGROUP usage, a subgroup will be created in the same way as a group, and a second-level section will be created for each subgroup.

Signal edited_object_changed<>():Signal

Emitted when the object being edited by the inspector has changed.

Signal object_id_selected<>( int id=, id:int=, ):Signal

Emitted when the Edit button of an Object has been pressed in the inspector. This is mainly used in the remote scene tree Inspector.

Signal property_deleted<>( String property=, property:String=, ):Signal

Emitted when a property is removed from the inspector.

Signal property_edited<>( String property=, property:String=, ):Signal

Emitted when a property is edited in the inspector.

Signal property_keyed<>( String property=, property:String=, Variant value=, value:Variant=, bool advance=, advance:bool=, ):Signal

Emitted when a property is keyed in the inspector. Properties can be keyed by clicking the "key" icon next to a property when the Animation panel is toggled.

Signal property_selected<>( String property=, property:String=, ):Signal

Emitted when a property is selected in the inspector.

Signal property_toggled<>( String property=, property:String=, bool checked=, checked:bool=, ):Signal

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.

Signal resource_selected<>( Resource resource=, resource:Resource=, String path=, path:String=, ):Signal

Emitted when a resource is selected in the inspector.

Signal restart_requested<>():Signal

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 edit<>( Object object=, object:Object=, ):void

Shows the properties of the given object in this inspector for editing. To clear the inspector, call this method with null.

Note: If you want to edit an object in the editor's main inspector, use the edit_* methods in EditorInterface instead.

Object get_edited_object<>():Object

Returns the object currently selected in this inspector.

String get_selected_path<>():String

Gets the path of the currently selected property.

EditorProperty instantiate_property_editor<>( Object object=, object:Object=, =, :=, String path=, path:String=, PropertyHint hint=, hint:PropertyHint=, String hint_text=, hint_text:String=, int usage=, usage:int=, bool wide=false, wide:bool=false, ):EditorProperty

Creates a property editor that can be used by plugin UI to edit the specified property of an object.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...