.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_EditorSelection: EditorSelection =============== **Inherits:** :ref:`Object` **Category:** Core Brief Description ----------------- Manages the SceneTree selection in the editor. Member Functions ---------------- +----------------------------+--------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_node` **(** :ref:`Node` node **)** | +----------------------------+--------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear` **(** **)** | +----------------------------+--------------------------------------------------------------------------------------------------------------+ | :ref:`Array` | :ref:`get_selected_nodes` **(** **)** | +----------------------------+--------------------------------------------------------------------------------------------------------------+ | :ref:`Array` | :ref:`get_transformable_selected_nodes` **(** **)** | +----------------------------+--------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_node` **(** :ref:`Node` node **)** | +----------------------------+--------------------------------------------------------------------------------------------------------------+ Signals ------- - **selection_changed** **(** **)** Emitted when the selection changes. Description ----------- This object manages the SceneTree selection in the editor. Member Function Description --------------------------- .. _class_EditorSelection_add_node: - void **add_node** **(** :ref:`Node` node **)** Add a node to the selection. .. _class_EditorSelection_clear: - void **clear** **(** **)** Clear the selection. .. _class_EditorSelection_get_selected_nodes: - :ref:`Array` **get_selected_nodes** **(** **)** Get the list of selectes nodes. .. _class_EditorSelection_get_transformable_selected_nodes: - :ref:`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. .. _class_EditorSelection_remove_node: - void **remove_node** **(** :ref:`Node` node **)** Remove a node from the selection.