You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Assets/Samples/RebindingUI/InputActionIndicator.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ public class InputActionIndicator : MonoBehaviour
34
34
privatevoidOnEnable()
35
35
{
36
36
if(action!=null&&action.action!=null)
37
-
action.action.performed+=OnPerformed;
37
+
action.action.performed+=OnPerformed;// TODO Problem here after domain reload, InputAction.addperformed(), CallbackArray.AddCallback,. InputArrayExtensions.Contains
Copy file name to clipboardExpand all lines: Assets/Samples/RebindingUI/README.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,14 @@ To demonstrate how to use images instead of textual display strings, take a look
4
4
5
5
To demonstrate how to show dynamic texts based on input action bindings, see [ActionLabel](./ActionLabel.cs).
6
6
7
-
Finally, the [RebindSaveLoad](./RebindSaveLoad.cs) script demonstrates how to persist user rebinds in `PlayerPrefs` and how to restore them from there.
7
+
Finally, the [RebindSaveLoad](./RebindSaveLoad.cs) script demonstrates how to persist user rebinds in `PlayerPrefs` and how to restore them from there.
8
8
9
-
The icons used in the sample are taken from [Free Prompts Pack v4.0](https://opengameart.org/content/free-keyboard-and-controllers-prompts-pack) created by, and made available to public domain by Nicolae Berbece.
10
-
Icons are licensed under [Creative Commons CC0](https://creativecommons.org/publicdomain/zero/1.0/).
9
+
In this sample, keyboard bindings for "Move" (default WASD) is rebound as a single composite. This means that indivudual parts will get assigned one after
10
+
the other. Another way of doing this is to set it up as four individual button bindings and assign them individually as four partial bindings.
11
+
12
+
In this sample it is possible to directly rebind gamepad sticks in the gamepad control scheme. In practice, you probably
13
+
don't want to set up rebinding the sticks like this but rather have a "swap sticks" kind of toggle instead. In this
14
+
sample we have both variants for demonstration purposes.
15
+
16
+
The icons used in the sample are taken from [Free Prompts Pack v4.0](https://opengameart.org/content/free-keyboard-and-controllers-prompts-pack) created by, and made available to public domain by Nicolae Berbece.
17
+
Icons are licensed under [Creative Commons CC0](https://creativecommons.org/publicdomain/zero/1.0/).
0 commit comments