Input Icons for TMPro

$16
Publisher Tobias Froihofer
File size 20.19MB
Number of files 1465
Latest version 3.1.21
Latest release date 2024-04-19 11:39:13
First release date 2022-03-05 03:32:13
Supported Unity versions 2018.4.2 or higher

This asset allows you to easily display the bindings of your Input Action Assets (new Input System) as sprites in TMPro texts. Keyboard and Controllers (XBox, PS3, PS4, PS5, NSwitchPro) are supported and displayed sprites automatically update when the user switches devices.


Rebinding prefabs are included, making it very easy to provide players with the option to rebind their keys/buttons.


Features:

  • Display input actions in TextMeshPro texts along with other text without the need for additional code or components.
  • Automatically updates displayed icons when the user switches devices
  • Supports keyboard and gamepad inputs, including Steam input
  • 5 keyboard and 2 gamepad sprite sets per controller type (XBox, PS3, PS4, PS5 and NSwitchPro) included. Size: 256x256px
  • Allow players to rebind their keys with included prefabs

Usage: To display the bindings for a specific action, use the TMPro style tag. Simply type in the name of the action in your Input Action Asset. For example to display the "jump" action, write "<style=platformer controls/jump>". You can display the move action by typing "<style=platformer controls/move>". To only display the down part of the "move" action, write "<style=platformer controls/move/down>".


Rebinding: The included rebinding prefabs allow players to rebind their keys/buttons. Rebound actions can be automatically saved between sessions. The prefabs are customizable and support rebinding for either keys/mouse, gamepad, or the currently used device.


Customization: The displayed sprites are stored in Scriptable Objects, allowing for easy customization by changing the data and creating a new Sprite Asset with the click of a button.


Input Icons supports keyboards (QWERTY, QWERTZ, AZERTY) and gamepads (XBox, PS3, PS4, PS5, Nintendo Pro). It includes 950+ PNGs for keys, mouse, and gamepad buttons, with special characters falling back to the QWERTY layout.

Top Publisher Assets