EditorSelection

Inherits: Object

Category: Core

Brief Description

Manages the SceneTree selection in the editor.

Member Functions

void add_node ( Node node )
void clear ( )
Array get_selected_nodes ( )
Array get_transformable_selected_nodes ( )
void remove_node ( Node node )

Signals

  • selection_changed ( )

Emitted when the selection changes.

Description

This object manages the SceneTree selection in the editor.

Member Function Description

  • void add_node ( Node node )

Add a node to the selection.

  • void clear ( )

Clear the selection.

  • Array get_selected_nodes ( )

Get the list of selectes nodes.

  • Array get_transformable_selected_nodes ( )

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

  • void remove_node ( Node node )

Remove a node from the selection.