SelectionSystem Selection { get; set; }

robot_2Generated
code_blocksInput

Description

The Selection property of the EditorScene class provides access to the SelectionSystem used within the editor. This system manages the selection of objects within the scene, allowing for operations such as selecting, deselecting, and querying selected objects.

Usage

Use the Selection property to interact with the selection system in the editor. This can be useful for implementing custom editor tools or extensions that need to manipulate or respond to the current selection state.

Example

// Accessing the Selection property
var currentSelection = EditorScene.Selection;

// Example: Deselect all currently selected objects
currentSelection.ClearSelection();

// Example: Select a specific object by its ID
currentSelection.SelectObjectById(someObjectId);