Documentation
¶
Overview ¶
Package EditorSelection provides methods for working with EditorSelection object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AddNode(node [1]gdclass.Node)
- func (self Instance) AsEditorSelection() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) Clear()
- func (self Instance) GetSelectedNodes() [][1]gdclass.Node
- func (self Instance) GetTransformableSelectedNodes() [][1]gdclass.Node
- func (self Instance) OnSelectionChanged(cb func())
- func (self Instance) RemoveNode(node [1]gdclass.Node)
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Instance ¶
type Instance [1]gdclass.EditorSelection
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].
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AddNode ¶
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].
func (Instance) AsEditorSelection ¶
func (Instance) GetSelectedNodes ¶
Returns the list of selected nodes.
func (Instance) GetTransformableSelectedNodes ¶
Returns the list of selected nodes, optimized for transform operations (i.e. moving them, rotating, etc.). This list can be used to avoid situations where a node is selected and is also a child/grandchild.
func (Instance) OnSelectionChanged ¶
func (self Instance) OnSelectionChanged(cb func())
func (Instance) RemoveNode ¶
Removes a node from the selection.