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 48478022ce bb vor 4 Tagen
..
Icons bb vor 4 Tagen
.sample.json bb vor 4 Tagen
GamepadIconsExample.cs bb vor 4 Tagen
GamepadIconsExample.cs.meta bb vor 4 Tagen
Icons.meta bb vor 4 Tagen
README.md bb vor 4 Tagen
README.md.meta bb vor 4 Tagen
RebindActionUI.cs bb vor 4 Tagen
RebindActionUI.cs.meta bb vor 4 Tagen
RebindActionUIEditor.cs bb vor 4 Tagen
RebindActionUIEditor.cs.meta bb vor 4 Tagen
RebindSaveLoad.cs bb vor 4 Tagen
RebindSaveLoad.cs.meta bb vor 4 Tagen
RebindUIPrefab.prefab bb vor 4 Tagen
RebindUIPrefab.prefab.meta bb vor 4 Tagen
RebindUISampleActions.inputactions bb vor 4 Tagen
RebindUISampleActions.inputactions.meta bb vor 4 Tagen
RebindingUISampleScene.unity bb vor 4 Tagen
RebindingUISampleScene.unity.meta bb vor 4 Tagen
Unity.InputSystem.RebindingUI.asmdef bb vor 4 Tagen
Unity.InputSystem.RebindingUI.asmdef.meta bb vor 4 Tagen

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.