Jingyi Jia b4cbb439d9 first commit 2 年 前
..
Icons b4cbb439d9 first commit 2 年 前
.sample.json b4cbb439d9 first commit 2 年 前
GamepadIconsExample.cs b4cbb439d9 first commit 2 年 前
GamepadIconsExample.cs.meta b4cbb439d9 first commit 2 年 前
Icons.meta b4cbb439d9 first commit 2 年 前
README.md b4cbb439d9 first commit 2 年 前
README.md.meta b4cbb439d9 first commit 2 年 前
RebindActionUI.cs b4cbb439d9 first commit 2 年 前
RebindActionUI.cs.meta b4cbb439d9 first commit 2 年 前
RebindActionUIEditor.cs b4cbb439d9 first commit 2 年 前
RebindActionUIEditor.cs.meta b4cbb439d9 first commit 2 年 前
RebindUIPrefab.prefab b4cbb439d9 first commit 2 年 前
RebindUIPrefab.prefab.meta b4cbb439d9 first commit 2 年 前
RebindUISampleActions.inputactions b4cbb439d9 first commit 2 年 前
RebindUISampleActions.inputactions.meta b4cbb439d9 first commit 2 年 前
RebindingUISampleScene.unity b4cbb439d9 first commit 2 年 前
RebindingUISampleScene.unity.meta b4cbb439d9 first commit 2 年 前
Unity.InputSystem.RebindingUI.asmdef b4cbb439d9 first commit 2 年 前
Unity.InputSystem.RebindingUI.asmdef.meta b4cbb439d9 first commit 2 年 前

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.