docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Remove a device

    When a Device is disconnected, it is removed from the system. A notification appears for InputDeviceChange.Removed (sent with InputSystem.onDeviceChange) and the Devices are removed from the devices list. The system also calls InputDevice.OnRemoved.

    The InputDevice.added flag is reset to false in the process.

    Note that Devices are not destroyed when removed. Device instances remain valid and you can still access them in code. However, trying to read values from the controls of these Devices leads to exceptions.

    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)