Description
The IsLeftMouseDown
property is a static boolean property of the Gizmo
class in the Sandbox namespace. It indicates whether the left mouse button is currently being pressed down. This property is useful for detecting mouse interactions within the context of a gizmo, which is a tool used for manipulating objects in a scene.
Usage
Use the IsLeftMouseDown
property to check if the left mouse button is actively pressed. This can be particularly useful in scenarios where you need to perform actions based on mouse input, such as dragging objects or selecting items in a 3D environment.
Since this property is static, it can be accessed directly through the Gizmo
class without needing to instantiate an object.
Example
// Example usage of IsLeftMouseDown property
if (Gizmo.IsLeftMouseDown)
{
// Perform actions when the left mouse button is down
// For example, start dragging an object
StartDraggingObject();
}