FrameIT
UnityEngine.InputSystem.PlayerControls.RebindUI.GamepadIconsExample Class Reference

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...

Inheritance diagram for UnityEngine.InputSystem.PlayerControls.RebindUI.GamepadIconsExample:

Classes

struct  GamepadIcons
 

Public Attributes

GamepadIcons xbox
 
GamepadIcons ps4
 

Protected Member Functions

void OnEnable ()
 
void OnUpdateBindingDisplay (RebindActionUI component, string bindingDisplayString, string deviceLayoutName, string controlPath)
 

Detailed Description

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.

Member Function Documentation

◆ 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

Member Data Documentation

◆ 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: