docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    Additional resources

    • Pointer input UI support
    • Navigation input UI support
    • Using UI Input Module for UI support
    • Configure UI Input Actions
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)