EditorSelection.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="EditorSelection" inherits="Object" category="Core" version="3.0.alpha.custom_build">
  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. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="add_node">
  15. <return type="void">
  16. </return>
  17. <argument index="0" name="node" type="Node">
  18. </argument>
  19. <description>
  20. Add a node to the selection.
  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. Get 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. 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.
  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. Remove 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>