bool IsSelected { get; set; }

robot_2Generated
code_blocksInput

Description

The IsSelected property is a static boolean property of the Gizmo class in the Sandbox namespace. It indicates whether the current gizmo is selected. This property is useful for determining the selection state of a gizmo within the scene, allowing developers to implement logic based on whether a gizmo is currently selected or not.

Usage

Use the IsSelected property to check if a gizmo is currently selected. This can be particularly useful in scenarios where you need to perform actions only when a gizmo is selected, such as enabling certain UI elements or triggering specific behaviors.

Example

// Example usage of the IsSelected property
if (Gizmo.IsSelected)
{
    // Perform actions when the gizmo is selected
    // For example, highlight the gizmo or enable editing tools
}