This object manages the SceneTree selection in the editor.
[b]Note:[/b] This class shouldn't be instantiated directly. Instead, access the singleton using [method EditorInterface.get_selection].
</description>
<tutorials>
</tutorials>
<methods>
<methodname="add_node">
<returntype="void"/>
<argumentindex="0"name="node"type="Node"/>
<description>
Adds a node to the selection.
[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].
</description>
</method>
<methodname="clear">
<returntype="void"/>
<description>
Clear the selection.
</description>
</method>
<methodname="get_selected_nodes">
<returntype="Array"/>
<description>
Gets the list of selected nodes.
</description>
</method>
<methodname="get_transformable_selected_nodes">
<returntype="Array"/>
<description>
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.