TOCK by NullSave\Input Cog\Scripts\Support\ActionButtonUI.cs


Ties a set of visual elements to a PlatformControllerAction to visually represent the correct input regardless of what PlatformController is currently being used.

This is only updated at start and when a controller changes, by subscribing to the InputCog controllerChanged event. All items are checked for null, so use only the elements you wish.


Action Name Name of PlatformControllerAction to watch.
Icon Size ActionUISize of image to display.
Hide if Unswappable When true the GameObject will be disable if the PlatformControllerAction is not set to "Allow Swapping"
Action Text Text element to place name of action.
Input Sprite Image element to display sprite.
Input Background Image element to display sprite background.
Input Text Text element to display sprite text.