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 a drag operation or completes a selection.
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 actions upon the release of the left mouse button, such as finalizing a drag-and-drop operation or confirming a selection.
Example usage:
if (Gizmo.WasLeftMouseReleased)
{
// Execute logic for when the left mouse button is released
CompleteDragOperation();
}
Example
if (Gizmo.WasLeftMouseReleased)
{
// Execute logic for when the left mouse button is released
CompleteDragOperation();
}