How to create input icon keys to display in-game? Are there systems in place for this?

I’ve tried to find resources about this, but honestly, I don’t even know how this is called - and I can’t find any real tutorials about it.

What I’m trying to do (and many other games have done), is display the input key icons in-game. For example, when you walk next to a person to talk to, where it shows you the key to press. Or during a tutorial, where it shows the keys to press. Of course, these keys swap according to what input device is being used, or what has been configured.

Many games already have this, so I assume there’s some system for it in Unity? I want to avoid re-inventing the wheel.

An example of this:

You see the “A”, “Start”, “B”, and “Y” buttons.

So I guess, my question is: How can I achieve something similar? Is there an in-built system for this (I’m using the new Input System)? If not, how are you guys handling this case - it seems like a pretty common thing to need, there probably already is a good way to do this?

Even just further resources to research or tutorials would be super helpful! I’m having trouble finding much.

Thanks in advance :slight_smile:

Check out the example scene made for this, you can import it from package manager: