Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by KempB · May 09, 2015 at 11:40 PM · fpscontroller

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.)

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image BAM-za · Jan 16, 2017 at 05:32 PM 0
Share

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

avatar image Khyrid BAM-za · Jan 17, 2017 at 12:40 PM 0
Share

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.

9 Replies

· Add your reply
  • Sort: 
avatar image
12

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Hartmanclan · Dec 13, 2015 at 06:00 AM 0
Share

Thank you very much, it fixed the problem for me also. $$anonymous$$ight you be able to explain why?

avatar image v_mace_v · Feb 25, 2016 at 11:28 AM 0
Share

Thanks Pockets! ... $$anonymous$$ouse look works in all directions after deleting the second camera.

avatar image
1

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...

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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)

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Pockets · Aug 19, 2015 at 06:10 PM 0
Share

Delete the second audio listener (the second main camera from the scene) if you haven't.

  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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

Difficulty Pausing the MouseLook Script 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges