docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enable and disable devices

    When a Device is added, the Input System sends it an initial QueryEnabledStateCommand to find out whether the device is currently enabled or not. The result of this is reflected in the InputDevice.enabled property.

    When disabled, no events other than removal (DeviceRemoveEvent) and configuration change (DeviceConfigurationEvent) events are processed for a Device, even if they are sent.

    A Device can be manually disabled and re-enabled with InputSystem.DisableDevice and InputSystem.EnableDevice respectively.

    Note that sensors start in a disabled state by default, and you need to enable them in order for them to generate events.

    The Input System may automatically disable and re-enable Devices in certain situations, as detailed in the next section.

    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)