Jingyi Jia b4cbb439d9 first commit | il y a 2 ans | |
---|---|---|
.. | ||
Icons | il y a 2 ans | |
.sample.json | il y a 2 ans | |
GamepadIconsExample.cs | il y a 2 ans | |
GamepadIconsExample.cs.meta | il y a 2 ans | |
Icons.meta | il y a 2 ans | |
README.md | il y a 2 ans | |
README.md.meta | il y a 2 ans | |
RebindActionUI.cs | il y a 2 ans | |
RebindActionUI.cs.meta | il y a 2 ans | |
RebindActionUIEditor.cs | il y a 2 ans | |
RebindActionUIEditor.cs.meta | il y a 2 ans | |
RebindUIPrefab.prefab | il y a 2 ans | |
RebindUIPrefab.prefab.meta | il y a 2 ans | |
RebindUISampleActions.inputactions | il y a 2 ans | |
RebindUISampleActions.inputactions.meta | il y a 2 ans | |
RebindingUISampleScene.unity | il y a 2 ans | |
RebindingUISampleScene.unity.meta | il y a 2 ans | |
Unity.InputSystem.RebindingUI.asmdef | il y a 2 ans | |
Unity.InputSystem.RebindingUI.asmdef.meta | il y a 2 ans |
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.