- Home /
My Mouse Cursor is locked in certain scenes
In my Player Camera Controller script i have a function to lock my mouse in my "Game" Scene: Cursor.lockState = CursorLockMode.Locked;
But when i start at the Menu scene it is locked too, while i don't have anything calling that in that scene.
Does anyone knows a solution? 
 
                 
                help.jpg 
                (168.6 kB) 
               
 
              
               Comment
              
 
               
              From your screenshot i see the two scenes loaded in the hierarchy, if you only load your menu does your mouse still gets locked ?
Answer by ahsen35813 · Aug 16, 2020 at 05:38 PM
Perhaps just run the line Cursor.lockState = CursorLockMode.None; in the main menu? Maybe the lock state carries over from the previous scene, but I don't know. 
Yeah that works but when i go to the 'game' scene it is still there while it then needs to dissappear
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
               
 
			 
                