Files
godot-docs/classes/class_editorselection.rst
2017-06-17 14:07:36 +02:00

71 lines
2.3 KiB
ReStructuredText

.. 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<class_object>`
**Category:** Core
Brief Description
-----------------
Manages the SceneTree selection in the editor.
Member Functions
----------------
+----------------------------+--------------------------------------------------------------------------------------------------+
| void | :ref:`add_node<class_EditorSelection_add_node>` **(** :ref:`Node<class_node>` node **)** |
+----------------------------+--------------------------------------------------------------------------------------------------+
| void | :ref:`clear<class_EditorSelection_clear>` **(** **)** |
+----------------------------+--------------------------------------------------------------------------------------------------+
| :ref:`Array<class_array>` | :ref:`get_selected_nodes<class_EditorSelection_get_selected_nodes>` **(** **)** |
+----------------------------+--------------------------------------------------------------------------------------------------+
| void | :ref:`remove_node<class_EditorSelection_remove_node>` **(** :ref:`Node<class_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<class_node>` node **)**
Add a node to the selection.
.. _class_EditorSelection_clear:
- void **clear** **(** **)**
Clear the selection.
.. _class_EditorSelection_get_selected_nodes:
- :ref:`Array<class_array>` **get_selected_nodes** **(** **)**
Get the list of selectes nodes.
.. _class_EditorSelection_remove_node:
- void **remove_node** **(** :ref:`Node<class_node>` node **)**
Remove a node from the selection.