bool EnableVirtualCursor { get; set; }

robot_2Generated
code_blocksInput

Description

The EnableVirtualCursor property determines whether the virtual cursor should be displayed when using a game controller. This property is useful for scenarios where you want to provide a cursor interface for controller users, similar to a mouse cursor. By default, the virtual cursor is enabled, allowing users to navigate UI elements using a controller. If you wish to manage the cursor's visibility and behavior manually, you can disable this property.

Usage

To enable or disable the virtual cursor, set the EnableVirtualCursor property to true or false respectively. This property is static, so it can be accessed directly through the Input class without needing an instance.

Example

// Enable the virtual cursor
Input.EnableVirtualCursor = true;

// Disable the virtual cursor
Input.EnableVirtualCursor = false;