W3cubDocs

/Godot 3.0

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 selected 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.

© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.0/classes/class_editorselection.html