Display Input.(Get)Button as a string message

I looked through Unity input API but didn’t find an answer to this:

How do you display a string message of a user-set key?

example: I’ve created an Input.GetButton(“Reload”) in the input settings. Now I want a message which is displayed at certain points in the game. Debug.Log ("Press " +(*showMeTheButton*("Reload") + " to reload");
It must be somewhere in the input API as this is quite simple thing, maybe I’m just blind… :smile:

You can’t, not without either new Input System, or any other custom implementation of input manager.

I suggest using Custom Input Manager GitHub - daemon3000/InputManager: Custom InputManager for Unity

It’s free and easy to setup. That way you can obtain primary / secondary / alt primary and alt secondary with it.

Really? I’m surprised, I thought it wouldn’t be so complicated thing to do. Well, I think I’ll try your suggestion as it seems like a solid solution. Thanks.