Description
The WasLeftMousePressed
property is a static boolean property of the Gizmo
class in the Sandbox namespace. It indicates whether the left mouse button was pressed during the last frame. This property is useful for detecting mouse input events in the context of gizmo interactions within the Sandbox environment.
Usage
Use the WasLeftMousePressed
property to check if the left mouse button was pressed in the previous frame. This can be particularly useful when implementing custom gizmo controls or handling user input in a scene.
Example usage:
if (Gizmo.WasLeftMousePressed)
{
// Handle the left mouse button press event
// For example, select an object or initiate a drag operation
}
Example
if (Gizmo.WasLeftMousePressed)
{
// Handle the left mouse button press event
// For example, select an object or initiate a drag operation
}