SelectionSystem Selection { get; set; }

robot_2Generated
code_blocksInput

Description

The Selection property of the EditorTool class provides access to the SelectionSystem associated with the editor tool. This system is responsible for managing the selection of objects within the editor environment.

Usage

Use the Selection property to interact with the selection system of the editor tool. This can be useful for operations that require knowledge of the currently selected objects or for modifying the selection programmatically.

Example

// Example of accessing the Selection property
public class MyEditorTool : EditorTool
{
    public void PrintSelectedObjects()
    {
        var selectedObjects = Selection.GetSelectedObjects();
        foreach (var obj in selectedObjects)
        {
            // Perform operations with the selected objects
            Log.Info($"Selected Object: {obj.Name}");
        }
    }
}