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.
1 Answer
\$\begingroup\$
\$\endgroup\$
1
If you are using Unity 5 just type Cursor.LockMode = LockMode.Unlocked
or whatever the lock modes unlocked mode is
-
\$\begingroup\$ If you are unfamiliar with the API, please don't just guess. There is no
LockMode
underCursor
as per the Unity API. \$\endgroup\$– GnemlockSep 30, 2016 at 16:24
name_of_mouselock_var = false
? \$\endgroup\$