|
há 3 anos atrás | |
---|---|---|
.. | ||
Icons | há 3 anos atrás | |
.sample.json | há 3 anos atrás | |
GamepadIconsExample.cs | há 3 anos atrás | |
GamepadIconsExample.cs.meta | há 3 anos atrás | |
Icons.meta | há 3 anos atrás | |
README.md | há 3 anos atrás | |
README.md.meta | há 3 anos atrás | |
RebindActionUI.cs | há 3 anos atrás | |
RebindActionUI.cs.meta | há 3 anos atrás | |
RebindActionUIEditor.cs | há 3 anos atrás | |
RebindActionUIEditor.cs.meta | há 3 anos atrás | |
RebindUIPrefab.prefab | há 3 anos atrás | |
RebindUIPrefab.prefab.meta | há 3 anos atrás | |
RebindUISampleActions.inputactions | há 3 anos atrás | |
RebindUISampleActions.inputactions.meta | há 3 anos atrás | |
RebindingUISampleScene.unity | há 3 anos atrás | |
RebindingUISampleScene.unity.meta | há 3 anos atrás | |
Unity.InputSystem.RebindingUI.asmdef | há 3 anos atrás | |
Unity.InputSystem.RebindingUI.asmdef.meta | há 3 anos atrás |
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.