Description
The WasLeftMouseReleased
property is a static boolean property of the Gizmo
class in the Sandbox namespace. It indicates whether the left mouse button was released during the current frame. This property is useful for detecting mouse release events in the context of gizmo interactions, such as when a user releases the left mouse button after dragging or clicking on a gizmo element.
Usage
Use the WasLeftMouseReleased
property to check if the left mouse button was released in the current frame. This can be particularly useful in scenarios where you need to trigger an action or update a state when the user releases the mouse button after interacting with a gizmo.
Example usage:
if (Gizmo.WasLeftMouseReleased)
{
// Perform actions that should occur when the left mouse button is released
HandleMouseRelease();
}
Example
if (Gizmo.WasLeftMouseReleased)
{
// Perform actions that should occur when the left mouse button is released
HandleMouseRelease();
}