Description
The HasClicked
property is a static boolean property of the Gizmo
class in the Sandbox namespace. It indicates whether a gizmo has been clicked during the current frame. This property is useful for detecting user interactions with gizmos in a scene, allowing developers to respond to click events.
Usage
Use the HasClicked
property to check if a gizmo has been clicked in the current frame. This can be particularly useful in scenarios where you need to trigger actions based on user interactions with gizmos.
Example usage:
if (Gizmo.HasClicked)
{
// Perform actions when a gizmo is clicked
HandleGizmoClick();
}
Example
if (Gizmo.HasClicked)
{
// Perform actions when a gizmo is clicked
HandleGizmoClick();
}