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
0
Question by Ryan 3 · Nov 17, 2010 at 06:11 PM · animationlerpz

Lerpz wont move

I am a 3-D artist new to gaming engines and I am having trouble with this Lerpz game tutorial. I am on page 19 where I need to apply the ThirdPersonPlayerAnimation to the Lerpz game object and I am getting this error:

NullReferenceException: Object reference not set to an instance of an object SpringFollowCamera.LateUpdate () (at Assets/Scripts/Camera/SpringFollowCamera.js:44)

I don't understand whats going on. Can someone Please help me out?

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

· Add your reply
  • Sort: 
avatar image
1

Answer by skovacs1 · Nov 17, 2010 at 06:56 PM

Here's what the error means:

On one of your objects, likely the camera, there is an instance of the script Assets/Scripts/Camera/SpringFollowCamera.js attached. At line 44 of this script, there is an object that it is trying to reference that does not exist.

I looked at the script in question and the object that it is trying to reference is controller, the ThirdPersonController that should be attached to the target (which it gets in Awake()).

There are several sources for the problem and possible solutions:

  1. You could remove the SpringFollowCamera script and then it won't give you that error.
  2. If the target on the script is not set, then set the target to be an object with a ThirdPersonContoller attached.
  3. If the target specified does not have a ThirdPersonController, add a ThirdPersonContoller to the target.
  4. Were you making a change in Play mode? This is generally a bad idea if you don't know what you are doing. Stop, make your changes and then click Play.
  5. If none of the above apply, then the error may be a remnant from some past state at which you clicked Play when your scene was not properly setup. Clear the error and try again.
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

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

No one has followed this question yet.

Related Questions

Unity does not recognize reload animation for gun 1 Answer

Add animation curve through script 2 Answers

Unity3D AI using animations 1 Answer

Animation Script not working. 1 Answer

How would I go about making an animation affected by this 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