docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Working with devices

    Observe and manage the set of connected Input Devices from script.

    React when devices are added or removed at runtime, or create and destroy devices yourself—for example for tests, virtual input, or on-screen controls.

    Topic Description
    Monitor devices Subscribe to InputSystem.onDeviceChange to detect when devices are added or removed.
    Manually add and remove devices Create or remove devices with InputSystem.AddDevice() and InputSystem.RemoveDevice().
    Input simulation methods Compare the ways to send input to a device without its hardware, for example to test your input code, drive a virtual device, or replay input that you recorded.

    Additional resources

    • Device lifecycle
    • Custom devices
    • Create on-screen controls
    • Debug a device
    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)