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


Required Component: Image

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.
Key Text Format When the PlatformControllerInput is a KeyCode {0} will be replaced with the name of KeyCode.
Input Sprite Image element to display sprite.
Input Background Image element to display sprite background.
Input Text Text element to display sprite text.