File: EditorSelection.xml

package info (click to toggle)
godot 3.6%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 270,588 kB
  • sloc: cpp: 971,579; ansic: 617,953; xml: 80,302; asm: 17,498; cs: 14,559; python: 11,744; java: 9,681; javascript: 4,654; pascal: 1,176; sh: 896; objc: 529; makefile: 176
file content (56 lines) | stat: -rw-r--r-- 1,874 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0" encoding="UTF-8" ?>
<class name="EditorSelection" inherits="Object" version="3.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
	<brief_description>
		Manages the SceneTree selection in the editor.
	</brief_description>
	<description>
		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>
		<method name="add_node">
			<return type="void" />
			<argument index="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>
		<method name="clear">
			<return type="void" />
			<description>
				Clear the selection.
			</description>
		</method>
		<method name="get_selected_nodes">
			<return type="Array" />
			<description>
				Gets the list of selected nodes.
			</description>
		</method>
		<method name="get_transformable_selected_nodes">
			<return type="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.
			</description>
		</method>
		<method name="remove_node">
			<return type="void" />
			<argument index="0" name="node" type="Node" />
			<description>
				Removes 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>