Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
unknown 6a3155926e first vor 8 Monaten
..
Icons first vor 8 Monaten
.sample.json first vor 8 Monaten
GamepadIconsExample.cs first vor 8 Monaten
GamepadIconsExample.cs.meta first vor 8 Monaten
Icons.meta first vor 8 Monaten
README.md first vor 8 Monaten
README.md.meta first vor 8 Monaten
RebindActionUI.cs first vor 8 Monaten
RebindActionUI.cs.meta first vor 8 Monaten
RebindActionUIEditor.cs first vor 8 Monaten
RebindActionUIEditor.cs.meta first vor 8 Monaten
RebindSaveLoad.cs first vor 8 Monaten
RebindSaveLoad.cs.meta first vor 8 Monaten
RebindUIPrefab.prefab first vor 8 Monaten
RebindUIPrefab.prefab.meta first vor 8 Monaten
RebindUISampleActions.inputactions first vor 8 Monaten
RebindUISampleActions.inputactions.meta first vor 8 Monaten
RebindingUISampleScene.unity first vor 8 Monaten
RebindingUISampleScene.unity.meta first vor 8 Monaten
Unity.InputSystem.RebindingUI.asmdef first vor 8 Monaten
Unity.InputSystem.RebindingUI.asmdef.meta first vor 8 Monaten

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.