Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
This question was closed Nov 08, 2016 at 03:18 AM by NoahVilla16 for the following reason:

Problem is not reproducible or outdated

avatar image
0
Question by NoahVilla16 · Nov 23, 2015 at 08:44 PM · scripting problemmouseerror messagemouselookerror-handling

What does this error message mean and how do I fix it?

I am currently writing my own FPS controller and decided to utilize the "MouseLook.cs" for looking around. However, I always get this error whenever I run the game.

transform.localRotation assign attempt for 'Player' is not valid. Input rotation is { NaN, NaN, NaN, NaN }. UnityEngine.Transform:set_localRotation(Quaternion) UnityStandardAssets.Characters.FirstPerson.MouseLook:LookRotation(Transform, Transform) (at Assets/Scripts/MouseLook.cs:44) MyFirstPersonController:handleMouseInput() (at Assets/Scripts/MyFirstPersonController.cs:76) MyFirstPersonController:Update() (at Assets/Scripts/MyFirstPersonController.cs:36)

What does this mean and how do I fix it? I am very confused at this. The game does not crash when I get this error, it just keeps running. Everything else works fine, but the character will not look around. I get this error every time.

I am still new to the Unity Editor and Unity Scripting, in case anyone is wondering.

Comment
Add comment
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

1 Reply

  • Sort: 
avatar image
0

Answer by gameplay4all · Nov 23, 2015 at 10:19 PM

If I remember correctly, MouseLook uses another script called 'FPSInputController' or something similar. You should add that to your Player's object. That script provides the input needed for MouseLook to work.

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 NoahVilla16 · Nov 24, 2015 at 12:09 AM 0
Share

Odd, I can't find this in the Standard Assets folder. Do you know the specific location of it?

Follow this Question

Answers Answers and Comments

37 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How would i change my mouse cursor in between scenes 0 Answers

Unknown Identifier 'MouseLook' 0 Answers

Need help with error CS0029 and error CS0118 3 Answers

Error with AI going to Waypoints,Issues with AI tracking waypoints 0 Answers

Referencing and Executing Script Can't Be Done due to Not Being A Statement 0 Answers


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