This is an example for how to override the default display behavior of bindings. The component
hooks into 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.
Inheritance
GamepadIconsExample
public class GamepadIconsExample : MonoBehaviour
Fields
Declaration
public GamepadIconsExample.GamepadIcons ps4
Field Value
Declaration
public GamepadIconsExample.GamepadIcons xbox
Field Value
Methods
Declaration
protected void OnEnable()
Declaration
protected void OnUpdateBindingDisplay(RebindActionUI component, string bindingDisplayString, string deviceLayoutName, string controlPath)
Parameters