- Home /
Game Controls Won't Work
Ok, the first time this made me frustrated (restarted whole project), but for some reason, when I paused me game (right next to play button) and when I unpaused game, my game controls wouldn't work, and when I stop the game completely and re-played it, the character controls (up to move, left and right to steer, space to shoot,...) wouldn't work at all.I also closed the project completely and reopened it and re-ran my game, but the controls still didn't work. Is it Unity that is messed up or is it just some type of function or whatever? If possible, please help me solve this problem cause I do not want to restart project. Thanks!
Answer by save · May 17, 2011 at 11:19 PM
Check that you have set the correct inputs in the Input Manager. The inputs are stored to each project. Otherwise it's hard to know what could be wrong, I take it that you don't have any scripts that alters the inputs at runtime, right?
Thanks for the help, but for some odd reason when I re-ran my game it worked...If it ever happens again I'll be sure to try your option. Thanks for the (quick) reply!
It almost sounds like something related to the actual hardware, might be that Unity doesn't go well with the drivers to your keyboard if you have an exotic variant. Sorry it's hard to tell. I sometimes get this on rare occasions when reloading a level several times with short time in between while testing.
Are you sure that you focused your game view? If you click outside your gameview you switch the keyboard focus to another window (inspector,sceneview, whatever). Just click into the gameview and it should work.
Your answer
Follow this Question
Related Questions
gui text button dont work 1 Answer
Online scripts stop working 0 Answers
Network View glitch? 0 Answers
Game dont work on Zenfone 5 0 Answers
2D Game: main menu button dont work 0 Answers