docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Noisy controls

    Noisy controls continue to change value without user interaction. For example, a cellphone's gyroscope sensor provides fluctuating input data even when the cellphone is stationary.

    The Input System marks some built-in control types as noisy. To check if a control type is noisy, use the InputControl.noisy property. You can also inspect control types in the Input Debugger window.

    For a control marked as noisy:

    • The control isn't considered for interactive rebinding. InputActionRebindingExtensions.RebindingOperation ignores the control by default. To bypass the default, use WithoutIgnoringNoisyControls.

    • The Input System performs additional event filtering to filter out noise. If a non-noise value causes the control to state change, the Input System calls InputDevice.MakeCurrent. If an input event for a device doesn't change the state for a control that isn't marked as noisy, the Input System doesn't set the device to current. This avoids, for example, a plugged in game controller that sets itself as Gamepad.current because its sensors constantly input data.

    • When the application loses focus and Devices are reset as a result, the state of noisy control will be preserved as is. This ensures that sensor readings will remain at their last value rather than being reset to default values.

    Note

    To query whether a control is noisy, use the InputControl.noisy property.

    If any control on a device is noisy, the device itself is flagged as noisy.

    When a device whose controls are all noisy is added, it doesn't become current if another device of its type is already current. For example, all of a gyroscope sensor's controls are noisy, so a second gyroscope doesn't replace the first one as Gyroscope.current. If you call InputDevice.MakeCurrent yourself, the device becomes current.

    The Input System keeps the input state and the default state for all currently present devices. In parallel, the Input System also maintains a noise mask that you can use to mask input noise.

    Noise masks

    The Input System keeps the input state and the default state for all currently present devices. In parallel, the Input System also maintains a noise mask that you can use to mask input noise.

    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)