summaryrefslogtreecommitdiff
path: root/doc/classes/EditorSelection.xml
blob: 0424ab5e43b327fbeb9a6f29fb386aae93383b3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="UTF-8" ?>
<class name="EditorSelection" inherits="Object" category="Core" version="3.0-stable">
	<brief_description>
		Manages the SceneTree selection in the editor.
	</brief_description>
	<description>
		This object manages the SceneTree selection in the editor.
	</description>
	<tutorials>
	</tutorials>
	<demos>
	</demos>
	<methods>
		<method name="add_node">
			<return type="void">
			</return>
			<argument index="0" name="node" type="Node">
			</argument>
			<description>
				Add a node to the selection.
			</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>
				Get the list of selected nodes.
			</description>
		</method>
		<method name="get_transformable_selected_nodes">
			<return type="Array">
			</return>
			<description>
				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.
			</description>
		</method>
		<method name="remove_node">
			<return type="void">
			</return>
			<argument index="0" name="node" type="Node">
			</argument>
			<description>
				Remove a node from the selection.
			</description>
		</method>
	</methods>
	<signals>
		<signal name="selection_changed">
			<description>
				Emitted when the selection changes.
			</description>
		</signal>
	</signals>
	<constants>
	</constants>
</class>