EditorSelection

package
v0.0.0-...-c909628 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package EditorSelection provides methods for working with EditorSelection object instances.

Index

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 Any

type Any interface {
	gd.IsClass
	AsEditorSelection() Instance
}

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 New

func New() Instance

func (Instance) AddNode

func (self Instance) AddNode(node [1]gdclass.Node)

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 (self Instance) AsEditorSelection() Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) Clear

func (self Instance) Clear()

Clear the selection.

func (Instance) GetSelectedNodes

func (self Instance) GetSelectedNodes() [][1]gdclass.Node

Returns the list of selected nodes.

func (Instance) GetTransformableSelectedNodes

func (self Instance) GetTransformableSelectedNodes() [][1]gdclass.Node

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

func (self Instance) RemoveNode(node [1]gdclass.Node)

Removes a node from the selection.

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL