The Mouse.Active
property is a static boolean property that indicates whether the local client's cursor is active. When the cursor is active, it can interact with UI elements and other interactive components within the game environment.
The Mouse.Active
property is a static boolean property that indicates whether the local client's cursor is active. When the cursor is active, it can interact with UI elements and other interactive components within the game environment.
Use the Mouse.Active
property to check if the cursor is currently active and able to interact with UI elements. This can be useful for enabling or disabling certain game features based on the cursor's state.
// Check if the mouse cursor is active if (Mouse.Active) { // Perform actions that require an active cursor // For example, show a UI panel or enable cursor-based interactions } else { // Handle the case where the cursor is not active // For example, disable certain UI elements or interactions }