- Home /
MouseY always enabled?
I have a First Person Controller and a Mouse Look Script is attached. Now I want to be able to disable "looking arround". But if I disable the Script, MouseY still works. Also if I remove the Script. Is MouseY always enabled in Unity? That's mad!
Answer by Eric5h5 · Feb 19, 2013 at 11:04 PM
The MouseLook script is simply on two different objects, one for horizontal rotation and one for vertical (because you don't want vertical rotation actually rotating the object, just the view). Not mad at all.
Answer by DryTear · Feb 20, 2013 at 12:41 AM
FirstPersonController
MainCamera
Graphics
Inside the MainCamera you can there remove/disable/change them MouseLook.cs
Answer by rednax20 · Feb 19, 2013 at 10:52 PM
I don't know much about unity, but your right you can't turn off y axis rotating, even when you delete the script. I don't know what it means, but I went into the script and deleted all the text, and it worked. So just go into MouseLook.cs and delete all the text and it should work the way you want it to. By the way I have no idea how this happens
Be careful Though, if your using it in a scene the normal way that script won't work because the script is gone.