EditorSelection

Inherits: Object

Manages the SceneTree selection in the editor.

Description

This object manages the SceneTree selection in the editor.

Signals

  • selection_changed ( )

Emitted when the selection changes.

Method Descriptions

  • void add_node ( Node node )

Adds a node to the selection.


  • void clear ( )

Clear the selection.


  • Array get_selected_nodes ( )

Gets the list of selected nodes.


  • Array get_transformable_selected_nodes ( )

Gets the list of selected nodes, optimized for transform operations (i.e. moving them, rotating, etc). This list avoids situations where a node is selected and also child/grandchild.


  • void remove_node ( Node node )

Removes a node from the selection.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.