- Home /
Mouse Look Y Sensitivity doesn't change
Hi,
I've been using the standard mouse look script but I can't seem to change the sensitivity of the Y axis. I have made sure that XandY is selected in the axes, and have tried to change the sensitivity in the code as well as in the interface. I also tried to replace the code with the one found here - http://forum.unity3d.com/viewtopic.php?t=42003&highlight=sensitivity, but it still doesn't do anything.
Does anyone know why this doesn't work?
thanks
Are you getting any errors? Or it just doesn't work? Any chance of posting the offending code? -Larry
Well, you can view the code from the link in the message, as I haven't changed it at all. I wondered whether it could be to do with my input axes, although I haven't changed these from the standard either :/
I'm not getting any errors either
I just created a test project, containing only a terrain, a camera and the script from your link. The script appears to be working just fine. Adjusting the sensitivity did impact the panning. $$anonymous$$aking small changes to the sensitivity didn't have a lot of impact, but large changes seem to work fine. To test that it is working at all, try setting the sensitivity to -25 and see if it moves opposite what it did before. -Larry
Yeah I tried it on -25 but it's just acting as normal. Weird, I don't know what's wrong!
Do you have any other scripts attached that might be interfering? The C# mouse look script maybe?
Answer by Chuyannnnn · May 15, 2010 at 03:39 PM
Are you using the First Person Controller prefab from the standard asset? If so try modify the "Sensitivity Y" variable of the script attached to the Main Camera instead of the one attached to the prefab itself.
Hope this helps.
Answer by maciekish · Jan 26, 2012 at 01:02 PM
I just removed the MouseLook script from the main camera and modified the values on the FirstPersonController directly. Worked a charm.
I agree with this idea. There is no point in having a mouselook script on the camera and on the controller.
Answer by shashank_agg · Dec 21, 2013 at 04:45 PM
Disable the mouse look script for the camera inside the controller..worked for me..