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.