2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2021-04-26 13:14:51 +02:00
<class name= "EditorSelection" inherits= "Object" version= "3.4" >
2017-09-12 22:42:36 +02:00
<brief_description >
Manages the SceneTree selection in the editor.
</brief_description>
<description >
This object manages the SceneTree selection in the editor.
2020-04-14 22:09:21 +02:00
[b]Note:[/b] This class shouldn't be instantiated directly. Instead, access the singleton using [method EditorInterface.get_selection].
2017-09-12 22:42:36 +02:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "add_node" >
<return type= "void" >
</return>
<argument index= "0" name= "node" type= "Node" >
</argument>
<description >
2019-06-22 01:04:47 +02:00
Adds a node to the selection.
2021-04-07 22:08:41 +02:00
[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].
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "clear" >
<return type= "void" >
</return>
<description >
Clear the selection.
</description>
</method>
<method name= "get_selected_nodes" >
<return type= "Array" >
</return>
<description >
2019-06-22 01:04:47 +02:00
Gets the list of selected nodes.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_transformable_selected_nodes" >
<return type= "Array" >
</return>
<description >
2019-06-22 01:04:47 +02:00
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.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "remove_node" >
<return type= "void" >
</return>
<argument index= "0" name= "node" type= "Node" >
</argument>
<description >
2019-06-22 01:04:47 +02:00
Removes a node from the selection.
2017-09-12 22:42:36 +02:00
</description>
</method>
</methods>
<signals >
<signal name= "selection_changed" >
<description >
Emitted when the selection changes.
</description>
</signal>
</signals>
<constants >
</constants>
</class>