docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    User rebinding at runtime

    A common requirement in games is to allow your users to rebind the controls to a configuration of their preference. For example, choosing which button on their controller maps to particular actions in the game. Learn how to implement user rebinding in this section.

    Topic Description
    Look up bindings Retrieve the bindings of an action using its InputAction.bindings.
    Display bindings Use InputBinding.effectivePath to get the currently active path for a binding.
    Rebind an action at runtime Allow users of your application to set their own bindings.
    Save and load rebinds Serialize override properties of bindings as JSON strings.
    Restore original bindings Remove binding overrides to restore defaults.

    Additional resources

    • Bindings
    • Configure actions
    • Setting up input
    • Input for user interfaces
    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)