- Home /
 
               Question by 
               GhostFrag1 · Feb 18, 2014 at 10:17 PM · 
                pause menumouse orbit  
              
 
              Mouse Look Won't Re-Enable
I am working on learning Unity and have recently used a paused menu script from here: http://wiki.unity3d.com/index.php?title=PauseMenu I am currently using the javascript version and I have modified it so when the game is paused the mouse look stops but for some reason only my Y axis will re-enable but my X won't. The script has been placed on the Character controller. But if it is on the Main camera then my Y axis won't work. The code I am using is here: http://pastebin.com/N3L4ef6t
               Comment
              
 
               
              Answer by Maui-M · Feb 18, 2014 at 10:47 PM
It looks like you are never enabling MouseLook after unpausing the game.
 function UnPauseGame() {
    GetComponent("MouseLook").enabled = true;
 }
That fixes the unpausing mouse, so it moves again but now when it is paused the mouse can still move, up and down.
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                