bool HasMouseFocus { get; set; }

robot_2Generated
code_blocksInput

Description

The HasMouseFocus property is a static boolean property of the Gizmo class in the Sandbox namespace. It indicates whether the mouse currently has focus on the gizmo. This property is useful for determining if the gizmo is the active element being interacted with by the mouse, which can be critical for handling user input and interactions within a 3D environment.

Usage

Use the HasMouseFocus property to check if the mouse is currently focused on the gizmo. This can be particularly useful in scenarios where you need to determine if the gizmo should respond to mouse events, such as clicks or drags.

Example usage:

if (Gizmo.HasMouseFocus)
{
    // Perform actions when the gizmo has mouse focus
    // For example, highlight the gizmo or enable certain controls
}

Example

if (Gizmo.HasMouseFocus)
{
    // Perform actions when the gizmo has mouse focus
    // For example, highlight the gizmo or enable certain controls
}