0
\$\begingroup\$

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.

\$\endgroup\$
  • \$\begingroup\$ Can you not just call name_of_mouselock_var = false? \$\endgroup\$ – ZEKE Sep 10 '16 at 20:04
  • \$\begingroup\$ no, because it uses a folder of variables or something weird like that, \$\endgroup\$ – wfa Sep 11 '16 at 0:16
-1
\$\begingroup\$

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

\$\endgroup\$
  • \$\begingroup\$ If you are unfamiliar with the API, please don't just guess. There is no LockMode under Cursor as per the Unity API. \$\endgroup\$ – Gnemlock Sep 30 '16 at 16:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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