- Home /
Problem with mouse look with FPS controller
I have a scene with an FPSController. Works great in debug - I can walk around, look around, etc. as expected. However, when I build the project for "PC, Mac & Linux Standalone," suddenly, I can only look left or right with the mouse - I can't look up or down! No settings were changed between testing it in debug and building and running it as an EXE.
The weird thing is, the first time this happened, I figured I'd accidentally messed up the mouse look settings in the controller, but I hadn't. And when I ran the scene in debugger again, the mouse look was locked there too! After I restarted Unity, though, the mouse look worked again but was still locked even after rebuilding the project into a new EXE. Is there a known issue with mouse look in the FPSController?
(Running Unity 5.0.1f1 Personal on Windows 8.1; mouse = Logitech M570.)
i have the same problem, my gun and arm also disappear as soon as start the game after it was built, you can see it for about half a second then it disappears, also cant look up or down
Sounds like the position or rotation of your gun and arm got messed up. Double check the scene view when paused to see if the objects are still where they should be and if they are set to render or disabled.
Answer by Pockets · Aug 19, 2015 at 06:03 AM
I had this problem, it was because I had two audio listeners in the scene. All I had to do was delete the second main camera from the scene, and it was fixed.
Thank you very much, it fixed the problem for me also. $$anonymous$$ight you be able to explain why?
Thanks Pockets! ... $$anonymous$$ouse look works in all directions after deleting the second camera.
Answer by YanHoxley · May 12, 2015 at 09:21 AM
Kinda found whats wrong, it has something with player height, put new controller and deactivate old one and copy your elements back to this new one, except player settings itself and export is clean. Avoided this happening by moving player camera at desired height without touching player settings or capsule...
Answer by bayerly · Aug 20, 2015 at 03:51 AM
Definitely caused by the two audio listeners mentioned by Pockets. That needs votes but I'm not legit enough yet.
Answer by KempB · May 12, 2015 at 09:20 PM
Thanks, Yan. Appreciate the help. Due to the mouse look problem and various other reasons (such as the imported model having a lot of tiny flipped normals) I decided to reimport the model and start fresh. After that, the FPSController acted normally after compile as expected. However, this info might help someone else out who experiences the problem, so it's good to have out there. Thanks!
Answer by Lovecraft-Petrichor · Jun 13, 2015 at 07:02 PM
This is still an issue. I am not sure if this is a player height issue, I think Yan got lucky. I am experiencing the same kind of thing and I am stumped. If I use the FPSController in standard assets I loose vertical mouse look when I compile. Mouse look works as expected in the editor while I run the game there -- but as soon as I compile and run the game, the compiled application loses the vertical mouse look and can only look left and right. Now is where it gets strange -- this behavior then carries over to the editor. If I close unity and reload it running the game in the editor has mouse look working properly -- UNLESS I at any time run the compiled game externally from the editor. Then no vertical mouse look. I don't know how to fix this as it works until an app is created and run then stops (both for the app AND in the editor). (Unity 5.0.2f1 Personal on iMac OSX Yosemite 10.10.3)
Delete the second audio listener (the second main camera from the scene) if you haven't.
Your answer
Follow this Question
Related Questions
Modifying Gravity 2 Answers
WeaponCamera shadow fail 0 Answers
How do i apply animations in javascript? 0 Answers
How to switch between FPSController controlled camera and fixed camera 1 Answer