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. |