InputGlyphs is an open-source package designed to display button glyph images (icons) for input devices detected by Unity’s InputSystem. It is easy to integrate and designed to allow for extension of devices and glyph images.
The glyph images in the game will automatically switch according to the device in use.
The package includes pre-configured glyph images for keyboard & mouse and gamepads, but you can add or change your own glyph images or use the glyphs provided by Steamworks.
Glyph images will be displayed according to your project’s InputActions and PlayerInput. Glyph images can be displayed using Sprite Renderer, UI Image, or Text Mesh Pro.
During gameplay, glyph images will automatically switch by detecting changes in input (PlayerInput). For example, when switching input devices, creating a second local player, or changing button assignments.
By default, glyph images for the following devices are supported. It can also be extended for other devices.
Default glyph images use Xelu’s FREE Controller Prompts (Creative Commons 0). If you are developing a game for Steam, you can also load the abundant gamepad glyph images provided by Steamworks.
When multiple buttons are assigned to one action, such as “Move: WASD”, concatenated glyph images are generated.