![[Unity] Combining the Input System and Localization to show dynamic custom bindings](/images/yt/k1/unity-combining-the-input-system-and-localization-to-show-rk7sa.jpg)
[Unity] Combining the Input System and Localization to show dynamic custom bindings
In this video I go through a script I wrote to marry Unity's new Input System with the in-development Localization system in order to show custom key bindings in Localized Text.
By automatically grabbing the input bindings and putting them into a Global Variables Asset, you can insert them into any localized text. It also does a look up on a TextMeshPro Sprite Asset to find matching glyphs for custom button prompts.
Tip: https://ko-fi.com/bigthedave
Games: http://geeitsomelaldy.itch.io
Twitter Comment Thread: https://twitter.com/GeeItSomeLaldy/status/1400820038316314624
You can find the source code here: https://pastebin.com/u/GeeItSomeLaldy/1/gzxhYmes
You can find a unitypackage here: http://clydebuiltgames.com/UnityScripts/LocalizedInputGlobals.zip