Jingyi Jia b4cbb439d9 first commit | 2 лет назад | |
---|---|---|
.. | ||
Icons | 2 лет назад | |
.sample.json | 2 лет назад | |
GamepadIconsExample.cs | 2 лет назад | |
GamepadIconsExample.cs.meta | 2 лет назад | |
Icons.meta | 2 лет назад | |
README.md | 2 лет назад | |
README.md.meta | 2 лет назад | |
RebindActionUI.cs | 2 лет назад | |
RebindActionUI.cs.meta | 2 лет назад | |
RebindActionUIEditor.cs | 2 лет назад | |
RebindActionUIEditor.cs.meta | 2 лет назад | |
RebindUIPrefab.prefab | 2 лет назад | |
RebindUIPrefab.prefab.meta | 2 лет назад | |
RebindUISampleActions.inputactions | 2 лет назад | |
RebindUISampleActions.inputactions.meta | 2 лет назад | |
RebindingUISampleScene.unity | 2 лет назад | |
RebindingUISampleScene.unity.meta | 2 лет назад | |
Unity.InputSystem.RebindingUI.asmdef | 2 лет назад | |
Unity.InputSystem.RebindingUI.asmdef.meta | 2 лет назад |
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.