i was making a game in unity and i want to know how to change input manager bindings from script i am not using the input system from the package manager i am using unity’s built in input manager
also im using unity editor 2019.2.13f1 but if you can do it in the later versions please tell me if you can and which versions
Here is a more or less comprehensive article / tutorial about Input Manager and rebinding from scripts.
im sorry but i forgot to mention that i dont want to create my own input manager i find it too tedious and i want to use unity’s built in input manager do you if that’s possible currently i have a system that just tells the user to restart the game and change the inputs from the display resolution dialog window that starts when you open the game
also because i already have scripts using it and replacing those would be a pain
If you use the Input.GetButton* and generally those what you can see in the input manager settings (the “button” part, not the “key” part), then you are doing it. But you have to write the code to change the bindings from script, it won’t writer itself.
The resolution dialog was removed in 2019. So be careful with updating Unity.
yes but do you know what that code is to change the input bindings?
I second this his question
Always read the documentation.
https://docs.unity3d.com/Packages/com.unity.inputsystem@1.3/manual/HowDoI.html#create-a-ui-to-rebind-input-in-my-game