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\$
2
  • \$\begingroup\$ Can you not just call name_of_mouselock_var = false? \$\endgroup\$
    – Sturlen
    Sep 10, 2016 at 20:04
  • \$\begingroup\$ no, because it uses a folder of variables or something weird like that, \$\endgroup\$
    – wfa
    Sep 11, 2016 at 0:16

1 Answer 1

-1
\$\begingroup\$

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

\$\endgroup\$
1
  • \$\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, 2016 at 16:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .