Jingyi Jia b4cbb439d9 first commit | 3 years ago | |
---|---|---|
.. | ||
Icons | 3 years ago | |
.sample.json | 3 years ago | |
GamepadIconsExample.cs | 3 years ago | |
GamepadIconsExample.cs.meta | 3 years ago | |
Icons.meta | 3 years ago | |
README.md | 3 years ago | |
README.md.meta | 3 years ago | |
RebindActionUI.cs | 3 years ago | |
RebindActionUI.cs.meta | 3 years ago | |
RebindActionUIEditor.cs | 3 years ago | |
RebindActionUIEditor.cs.meta | 3 years ago | |
RebindUIPrefab.prefab | 3 years ago | |
RebindUIPrefab.prefab.meta | 3 years ago | |
RebindUISampleActions.inputactions | 3 years ago | |
RebindUISampleActions.inputactions.meta | 3 years ago | |
RebindingUISampleScene.unity | 3 years ago | |
RebindingUISampleScene.unity.meta | 3 years ago | |
Unity.InputSystem.RebindingUI.asmdef | 3 years ago | |
Unity.InputSystem.RebindingUI.asmdef.meta | 3 years ago |
This sample demonstrates how to use the Input System APIs to set up a rebinding UI. The main file is RebindActionUI which, aside from serving as an example, contains a reusable MonoBehaviour
component for composing rebinding UIs. The RebindUIPrefab contains a ready-made prefab that can be used as a simple drop-in setup for rebinding an individual action.
To demonstrate how to use images instead of textual display strings, take a look at GamepadIconsExample.
The icons used in the sample are taken from Free Prompts Pack made by Nicolae Berbece.