Bez popisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
unknown 6a3155926e first před 7 měsíci
..
Icons first před 7 měsíci
.sample.json first před 7 měsíci
GamepadIconsExample.cs first před 7 měsíci
GamepadIconsExample.cs.meta first před 7 měsíci
Icons.meta first před 7 měsíci
README.md first před 7 měsíci
README.md.meta first před 7 měsíci
RebindActionUI.cs first před 7 měsíci
RebindActionUI.cs.meta first před 7 měsíci
RebindActionUIEditor.cs first před 7 měsíci
RebindActionUIEditor.cs.meta first před 7 měsíci
RebindSaveLoad.cs first před 7 měsíci
RebindSaveLoad.cs.meta first před 7 měsíci
RebindUIPrefab.prefab first před 7 měsíci
RebindUIPrefab.prefab.meta first před 7 měsíci
RebindUISampleActions.inputactions first před 7 měsíci
RebindUISampleActions.inputactions.meta first před 7 měsíci
RebindingUISampleScene.unity first před 7 měsíci
RebindingUISampleScene.unity.meta first před 7 měsíci
Unity.InputSystem.RebindingUI.asmdef first před 7 měsíci
Unity.InputSystem.RebindingUI.asmdef.meta first před 7 měsíci

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.

Finally, the RebindSaveLoad script demonstrates how to persist user rebinds in PlayerPrefs and how to restore them from there.

The icons used in the sample are taken from Free Prompts Pack v4.0 created by, and made available to public domain by Nicolae Berbece. Icons are licensed under Creative Commons CC0.