Jingyi Jia b4cbb439d9 first commit há 2 anos atrás
..
Icons b4cbb439d9 first commit há 2 anos atrás
.sample.json b4cbb439d9 first commit há 2 anos atrás
GamepadIconsExample.cs b4cbb439d9 first commit há 2 anos atrás
GamepadIconsExample.cs.meta b4cbb439d9 first commit há 2 anos atrás
Icons.meta b4cbb439d9 first commit há 2 anos atrás
README.md b4cbb439d9 first commit há 2 anos atrás
README.md.meta b4cbb439d9 first commit há 2 anos atrás
RebindActionUI.cs b4cbb439d9 first commit há 2 anos atrás
RebindActionUI.cs.meta b4cbb439d9 first commit há 2 anos atrás
RebindActionUIEditor.cs b4cbb439d9 first commit há 2 anos atrás
RebindActionUIEditor.cs.meta b4cbb439d9 first commit há 2 anos atrás
RebindUIPrefab.prefab b4cbb439d9 first commit há 2 anos atrás
RebindUIPrefab.prefab.meta b4cbb439d9 first commit há 2 anos atrás
RebindUISampleActions.inputactions b4cbb439d9 first commit há 2 anos atrás
RebindUISampleActions.inputactions.meta b4cbb439d9 first commit há 2 anos atrás
RebindingUISampleScene.unity b4cbb439d9 first commit há 2 anos atrás
RebindingUISampleScene.unity.meta b4cbb439d9 first commit há 2 anos atrás
Unity.InputSystem.RebindingUI.asmdef b4cbb439d9 first commit há 2 anos atrás
Unity.InputSystem.RebindingUI.asmdef.meta b4cbb439d9 first commit há 2 anos atrás

README.md

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.