This is an example for how to override the default display behavior of bindings. The component hooks into RebindActionUI.updateBindingUIEvent which is triggered when UI display of a binding should be refreshed. It then checks whether we have an icon for the current binding and if so, replaces the default text display with an icon.
More...
This is an example for how to override the default display behavior of bindings. The component hooks into RebindActionUI.updateBindingUIEvent which is triggered when UI display of a binding should be refreshed. It then checks whether we have an icon for the current binding and if so, replaces the default text display with an icon.
◆ OnEnable()
void UnityEngine.InputSystem.PlayerControls.RebindUI.GamepadIconsExample.OnEnable |
( |
| ) |
|
|
protected |
◆ OnUpdateBindingDisplay()
void UnityEngine.InputSystem.PlayerControls.RebindUI.GamepadIconsExample.OnUpdateBindingDisplay |
( |
RebindActionUI |
component, |
|
|
string |
bindingDisplayString, |
|
|
string |
deviceLayoutName, |
|
|
string |
controlPath |
|
) |
| |
|
protected |
◆ ps4
GamepadIcons UnityEngine.InputSystem.PlayerControls.RebindUI.GamepadIconsExample.ps4 |
◆ xbox
GamepadIcons UnityEngine.InputSystem.PlayerControls.RebindUI.GamepadIconsExample.xbox |
The documentation for this class was generated from the following file:
- D:/Users/marco/Dokuments/OneDrive/FAU/Informatik/!UFrameIT/FrameIT/MaZiFAU/Assets/Scripts/UI/PlayerControls/InputSystemPackage/GamepadIconsExample.cs