Description
The CursorType
property is a static string property of the Mouse
class in the Sandbox namespace. It allows you to set the type of cursor that is displayed. This setting remains in effect until another panel overrides it. Note that this property does not affect the cursor in the main menu.
Usage
To use the CursorType
property, simply assign a string value representing the desired cursor type. This can be useful for changing the cursor appearance in different parts of your application or game.
Example
// Example of setting the cursor type
Mouse.CursorType = "crosshair"; // Sets the cursor to a crosshair type
// Another example
Mouse.CursorType = "pointer"; // Sets the cursor to a pointer type