docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Add processors to controls

    You can have any number of Processors directly on an InputControl, which then process the values read from the Control. Whenever you call ReadValue on a Control, all Processors on that Control process the value before it gets returned to you. You can use ReadUnprocessedValue on a Control to bypass the Processors.

    The Input System adds Processors to a Control during device creation, if they're specified in the Control's layout. You can't add Processors to existing Controls after they've been created, so you can only add Processors to Controls when you're creating custom devices. The devices that the Input System supports out of the box already have some useful Processors added on their Controls. For instance, sticks on gamepads have a Stick Deadzone Processor.

    If you're using a layout generated by the Input System from a state struct using InputControlAttributes, you can specify the Processors you want to use with the processors property of the attribute, like this:

    Warning

    It looks like the sample you are looking for does not exist.

    If you create a layout from JSON, you can specify Processors on your Controls like this:

    Warning

    It looks like the sample you are looking for does not exist.

    This example extends the Gamepad layout, but you can extend any existing layout.

    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)