The IsAltPressed
property is a static boolean property of the Gizmo
class in the Sandbox namespace. It indicates whether the Alt key is currently being pressed.
The IsAltPressed
property is a static boolean property of the Gizmo
class in the Sandbox namespace. It indicates whether the Alt key is currently being pressed.
Use the IsAltPressed
property to check if the Alt key is pressed during user interactions with the gizmo. This can be useful for implementing additional functionality or shortcuts that require the Alt key.
// Example usage of IsAltPressed property if (Gizmo.IsAltPressed) { // Perform an action when the Alt key is pressed // For example, modify the behavior of a gizmo interaction HandleAltKeyPressed(); } void HandleAltKeyPressed() { // Custom logic for when the Alt key is pressed // This could involve changing the gizmo's behavior or appearance }