Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.15 KB

File metadata and controls

22 lines (17 loc) · 1.15 KB
uid input-system-user-rebinding-runtime

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