Vector2 CursorPosition { get; set; }

robot_2Generated
code_blocksInput

Description

The CursorPosition property provides the current position of the cursor in screen space. This is a static property of the Gizmo class, meaning it can be accessed without instantiating the class. The position is represented as a Vector2, which includes the X and Y coordinates on the screen.

Usage

To access the current cursor position in your application, you can use the CursorPosition property directly from the Gizmo class. This can be useful for determining where the user is pointing or clicking on the screen, which is essential for interactive applications or games.

Example

// Example of accessing the cursor position
Vector2 currentCursorPosition = Gizmo.CursorPosition;

// Use the cursor position for some logic
if (currentCursorPosition.x > 100 && currentCursorPosition.y > 100)
{
    // Perform some action if the cursor is in a specific area
}