class_editorselection.rst 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_EditorSelection:
  4. EditorSelection
  5. ===============
  6. **Inherits:** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Manages the SceneTree selection in the editor.
  11. Member Functions
  12. ----------------
  13. +----------------------------+--------------------------------------------------------------------------------------------------+
  14. | void | :ref:`add_node<class_EditorSelection_add_node>` **(** :ref:`Node<class_node>` node **)** |
  15. +----------------------------+--------------------------------------------------------------------------------------------------+
  16. | void | :ref:`clear<class_EditorSelection_clear>` **(** **)** |
  17. +----------------------------+--------------------------------------------------------------------------------------------------+
  18. | :ref:`Array<class_array>` | :ref:`get_selected_nodes<class_EditorSelection_get_selected_nodes>` **(** **)** |
  19. +----------------------------+--------------------------------------------------------------------------------------------------+
  20. | void | :ref:`remove_node<class_EditorSelection_remove_node>` **(** :ref:`Node<class_node>` node **)** |
  21. +----------------------------+--------------------------------------------------------------------------------------------------+
  22. Signals
  23. -------
  24. - **selection_changed** **(** **)**
  25. Emitted when the selection changes.
  26. Description
  27. -----------
  28. This object manages the SceneTree selection in the editor.
  29. Member Function Description
  30. ---------------------------
  31. .. _class_EditorSelection_add_node:
  32. - void **add_node** **(** :ref:`Node<class_node>` node **)**
  33. Add a node to the selection.
  34. .. _class_EditorSelection_clear:
  35. - void **clear** **(** **)**
  36. Clear the selection.
  37. .. _class_EditorSelection_get_selected_nodes:
  38. - :ref:`Array<class_array>` **get_selected_nodes** **(** **)**
  39. Get the list of selectes nodes.
  40. .. _class_EditorSelection_remove_node:
  41. - void **remove_node** **(** :ref:`Node<class_node>` node **)**
  42. Remove a node from the selection.