You can display button prompts (or just buttons to press) as sprites inside your TextMesh Pro text boxes with just a bit of initial setup. You'll see how to do it by hardcoding them in as well as in Unity's new input system, where bindings might change at some point.
For how to use the new input system, I highly recommend PitiIT's or Samyam's tutorials on the topic.
PitiIT • Unity Tutorial: Everything about the New I...
Samyam • How to use Unity's Input System
Xelu's free controller prompts: https://thoseawesomeguys.com/prompts/
Sprite Sheet generator: https://codeshack.io/images-sprite-sh...
Interesting docs for the new input system you might be interested in:
Here are a few pointers of where to look for more info on how to get a string from your binding and/or how to get which input device type is currently active:
This for getting a binding
https://docs.unity3d.com/Packages/com...
And here's one for getting the Binding Index by using a binding mask
https://docs.unity3d.com/Packages/com...
Here's the documentation on getting the current control scheme (though I have read that it doesn't work if you generate your C# script and my tests seemed to agree with that statement)
https://docs.unity3d.com/Packages/com...
I have come across tutorials that mentioned saving the currently active input device to a value when input devices changes, though it has been a while and I can't seem to find my links anymore. Basically, they used this: https://docs.unity3d.com/Packages/com...
If anybody knows of a great, applies-to-every-way-of-implementation kind of way, I would super appreciate to get to know about it =)!
📖 Chapters 🔖
00:00 What we will be creating
00:19 Prerequisits
00:33 Get free, amazing quality button sprites from ThoseAwesomeGuys
01:28 Quickly pack single sprites into a sprite sheet via tool
01:41 Setup your sprites
02:19 Hardcoding in your button prompt
02:39 The new input system's customizable bindings
03:01 Initial setup
03:16 Overview of the scripts
04:20 The text setter script
05:46 The replacer script
07:19 Using the replacer
08:38 Renaming Button Sprites
09:00 Setup the component
📁 Get the PDF Version of my tutorials
Would you rather read a book? I have a collection of eBooks on the Unity UGUI System here:
📘 Itch: https://christinacreatesgames.itch.io/
💬 Join the Discord
You are very welcome to join / discord !
🎮 Play My Games
🎲 https://christinacreatesgames.itch.io
🛍️ Recommended Assets
https://assetstore.unity.com/lists/hi... [affiliate]
📖 List of books all around Gamedev and Design I recommend: https://www.christinacreatesgames.com...
Otherwise, using my affiliate codes for these stores helps to support my channel:
🛒 Unity Asset Store: https://assetstore.unity.com/?aid=110... [affiliate]
🏪 Synty Store: https://syntystore.com/christinacreat... [affiliate]
🪸 Envato Elements: https://1.envato.market/ChristinaCrea... [affiliate]
🟦 Amazon: https://amzn.to/3G8NgFq [affiliate]
🌟 Actionable UI Feedback for Your Game
I offer UI consulting for gamedev projects! With 15+ years of design experience and a background of a teacher, I’m here to help:
👉 Learn more: https://www.vennegerts.com/en/gamedev...
☕ Support Me on Ko-fi
If you enjoy the content and want to support my work:
💛 Buy me a cocoa: https://ko-fi.com/christinacreatesgames
#unitytutorial #unity3d #gamedev #indiedev