Description
The HasHovered
property is a static boolean property of the Gizmo
class in the Sandbox namespace. It indicates whether any gizmo has been hovered over during the current frame. This property is useful for determining if the user's cursor is currently interacting with any gizmo elements in the scene.
Usage
Use the HasHovered
property to check if any gizmo is currently being hovered over by the cursor. This can be particularly useful in scenarios where you need to change the behavior of your application based on user interaction with gizmos, such as highlighting or providing additional information.
Example
// Example usage of the HasHovered property
if (Gizmo.HasHovered)
{
// Perform actions when a gizmo is hovered
HighlightGizmo();
}