This guide explains how to prepare for using Input Glyphs and the steps to display glyph images in the game.
InputGlyphs/Prefabs/InputGlyphsSetup
prefab in the first scene.The
InputGlyphsSetup
prefab includes initialization processes for each device, such as theKeyboard Glyph Initializer
component.
Glyph images can be rendered with Sprite Renderer, UI Image, or Text Mesh Pro.
Sprite Renderer
component to any object.Input Glyph Sprite
component to the same object.
Player Input
field.Input Action Reference
field.UI Image
component to any object within the Canvas.Input Glyph Image
component to the same object.
Player Input
field.Input Action Reference
field.Text Mesh Pro - UI
component to any object within the Canvas.Input Glyph Text
component to the same object.
Player Input
field.Input Action References
field.<sprite name=ActionName>
in the Text Mesh Pro
component. The tag will be replaced with the Glyph image.When you play the game, the glyph images will be displayed. If they are not displayed, check the error log.