EditorSelection.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="EditorSelection" inherits="Object" version="3.4">
  3. <brief_description>
  4. Manages the SceneTree selection in the editor.
  5. </brief_description>
  6. <description>
  7. This object manages the SceneTree selection in the editor.
  8. [b]Note:[/b] This class shouldn't be instantiated directly. Instead, access the singleton using [method EditorInterface.get_selection].
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <methods>
  13. <method name="add_node">
  14. <return type="void">
  15. </return>
  16. <argument index="0" name="node" type="Node">
  17. </argument>
  18. <description>
  19. Adds a node to the selection.
  20. [b]Note:[/b] The newly selected node will not be automatically edited in the inspector. If you want to edit a node, use [method EditorInterface.edit_node].
  21. </description>
  22. </method>
  23. <method name="clear">
  24. <return type="void">
  25. </return>
  26. <description>
  27. Clear the selection.
  28. </description>
  29. </method>
  30. <method name="get_selected_nodes">
  31. <return type="Array">
  32. </return>
  33. <description>
  34. Gets the list of selected nodes.
  35. </description>
  36. </method>
  37. <method name="get_transformable_selected_nodes">
  38. <return type="Array">
  39. </return>
  40. <description>
  41. Gets the list of selected nodes, optimized for transform operations (i.e. moving them, rotating, etc). This list avoids situations where a node is selected and also child/grandchild.
  42. </description>
  43. </method>
  44. <method name="remove_node">
  45. <return type="void">
  46. </return>
  47. <argument index="0" name="node" type="Node">
  48. </argument>
  49. <description>
  50. Removes a node from the selection.
  51. </description>
  52. </method>
  53. </methods>
  54. <signals>
  55. <signal name="selection_changed">
  56. <description>
  57. Emitted when the selection changes.
  58. </description>
  59. </signal>
  60. </signals>
  61. <constants>
  62. </constants>
  63. </class>