is it possible to disable the mouse look script applied to a camera?
The problems is that I have several GUI buttons that I need to use, but I'm using a FPS camera with the mouse look and cursor lock scripts applied to it.
I want to be able to unlock the cursor, use the GUI buttons and then lock the cursor again. While the cursor is unlocked I want the camera to stop moving with the movement of the mouse.
Since you are using the
Here is an example on how you can disable/enable
The above example disables and enables the
I found your solution and it helps me, but I still encounter an issue. I first had to change the beginning part of the script to :
Then everything is ok, BUT, I have the same issue than when I tried my own script. One I hit Escape, the cursor unlocks and shows off, but if I hit ESC again, even if the mouseLook scripts are activated again, the mouse cursor still shows off.
I'm using Unity 3.3. Does anyone one know what's happening? Thanks for unlightning me ;)
answered May 06 '11 at 02:07 AM