EditorSelection

Manages the SceneTree selection in the editor.

This object manages the SceneTree selection in the editor. Note: This class shouldn't be instantiated directly. Instead, access the singleton using EditorInterface.getSelection.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

_emitChange
void _emitChange()
_nodeRemoved
void _nodeRemoved(Node arg0)
addNode
void addNode(Node node)

Adds a node to the selection. Note: The newly selected node will not be automatically edited in the inspector. If you want to edit a node, use EditorInterface.editNode.

clear
void clear()

Clear the selection.

getSelectedNodes
Array getSelectedNodes()

Gets the list of selected nodes.

getTransformableSelectedNodes
Array getTransformableSelectedNodes()

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.

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(EditorSelection other)
opEquals
bool opEquals(typeof(null) n)
removeNode
void removeNode(Node node)

Removes a node from the selection.

toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
EditorSelection _new()

Construct a new instance of EditorSelection. Note: use memnew!EditorSelection instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta