bool HasMouseFocus { get; set; }

book_4_sparkGenerated
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 scene.

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 or if other UI elements should take precedence.

Example usage:

if (Gizmo.HasMouseFocus)
{
    // Perform actions when the gizmo has mouse focus
}
else
{
    // Handle cases where the gizmo does not have mouse focus
}

Example

if (Gizmo.HasMouseFocus)
{
    // Perform actions when the gizmo has mouse focus
}
else
{
    // Handle cases where the gizmo does not have mouse focus
}