Up to date

This page is up to date for Blazium 0.4.90 (4.3). If you still find outdated information, please open an issue.

EditorSelection๏ƒ

Inherits: Object

Manages the SceneTree selection in the editor.

Description๏ƒ

This object manages the SceneTree selection in the editor.

Note: This class shouldn't be instantiated directly. Instead, access the singleton using EditorInterface.get_selection.

Methods๏ƒ

void

add_node(node: Node)

void

clear()

Array[Node]

get_selected_nodes()

Array[Node]

get_transformable_selected_nodes()

void

remove_node(node: Node)


Signals๏ƒ

selection_changed() ๐Ÿ”—

Emitted when the selection changes.


Method Descriptions๏ƒ

void add_node(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.edit_node.


void clear() ๐Ÿ”—

Clear the selection.


Array[Node] get_selected_nodes() ๐Ÿ”—

Returns the list of selected nodes.


Array[Node] get_transformable_selected_nodes() ๐Ÿ”—

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.


void remove_node(node: Node) ๐Ÿ”—

Removes a node from the selection.