- Home /
How to change controls in-game?
Hi, I want to know if it's possible and how to change controls in-game in Unity 5 with a script. I don't find a guide to update Input Manager by scripting.
Thank you for help.
Yes it is Absolutely possible! What is your Input manager?
I think the best idea is to implement the different controll in different scripts, and enable the one you would like to use.
zeppike is right, i have the combined script which takes mouse, touch and keyboard and it was very hard to make it work (still buggy) and i will do exactly as zeppike suggests - one base class for all types of control and child classes for each type of control
I use the default Input $$anonymous$$anager, thank you for your answer. Can you explain a little more your idea please
Edit : It's ok ! Thank you a lot