Use a Virtual Mouse for UI cursor control
Drive uGUI pointer input from gamepads and joysticks with a simulated mouse device.
The Virtual Mouse component feeds a virtual Mouse device that the UI Input Module uses for point-and-click UI. Start with the introduction, then configure the pointer and actions in your scene.
Note
The Virtual Mouse component is only compatible with the Unity UI (uGUI) system, and not UI Toolkit or IMGUI.
| Topic | Description |
|---|---|
| Introduction to Virtual Mouse for UI cursor control | Learn when to use Virtual Mouse instead of navigation-only UI and how it simulates a Mouse device. |
| Configure a Virtual Mouse | Set up the pointer graphic, Canvas hierarchy, stick actions, and UI Input Module wiring. |
| Virtual Mouse component reference | Look up VirtualMouseInput properties for cursor, axis, and button actions. |