Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using unity's default FPS controller script. My game switches scenes, and when it does I can't move the mouse. I know that this is because of unity's m_mouselook's lock cursor is on. What I don't know how to do is turn that boolean to false through a different script.

share|improve this question
    
Can you not just call name_of_mouselock_var = false? – ZEKE Sep 10 at 20:04
    
no, because it uses a folder of variables or something weird like that, – wfa Sep 11 at 0:16

If you are using Unity 5 just type Cursor.LockMode = LockMode.Unlocked or whatever the lock modes unlocked mode is

share|improve this answer
    
If you are unfamiliar with the API, please don't just guess. There is no LockMode under Cursor as per the Unity API. – Gnemlock Sep 30 at 16:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.