Possible to remap input manager buttons/axes at runtime?


Thanks for reading. The basic question is: Is it possible to change to change what keys are mapped to a particular axis/button in the input manager at runtime? I’ve attached a screenshot of the controls I’m trying to remap. One is an axis, called vertical. The other is a button called fire.

I’ve also included an example of the code for checking if a button/axis is being pressed for movement or shooting in-game. I haven’t added controller support yet, but I’d like a solution that won’t prevent it from being added later. Thanks

   // Do something

InputMovement = new Vector3(Input.GetAxis("Horizontal"), 0 ,Input.GetAxis("Vertical"));

EDIT 1: Looks like this feature may not be available. Has it been added? How to access Input Manager via scripting? - Questions & Answers - Unity Discussions

This has been asked a lot.

It is currently not possible.

The only way to do it, is to create your own input manager.