I want to use Ctrl+WSAD , Alt+WSAD in my game, but these hotkeys are used by Unity, so I cannot use them in playmode.
Is there a way to forbidden Unity hotkeys in playmode?
Or any other way to solve this problem?
It’s not a problem for when you deploy your game, but is in the editor, so to test input functionality you can use different keybinds while strictly in the editor. To do that, make an input script and make use of the #if UNITY_EDITOR preprocessor directive. That condition returns true if you’re running within the editor and false for builds. Replace your inputs with some other silly key in place of Ctrl and Alt, like Tilde or the function keys. You could also use the build and run functionality, which hot builds your game and runs it in a separate process from the editor. You could additionally use two different InputManager files and swap between them while working in the editor and for builds.