- Home /
3rd person controller NullReferenceException
Hi Guys! Im sorry to say but my 3rd person controller is glitching up! i get the Same Error 24/7. I don't know why!
Here is the Error:
NullReferenceException ThirdPersonController.UpdateSmoothedMovementDirection () (at Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js:129) ThirdPersonController.Update () (at Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js:302)
Any Ideas why it's not working :)?
You need to post the code and tell us which is line 129 and 302
Answer by Bulgroz · Sep 24, 2012 at 09:13 PM
Did you change the Thirdpersoncontroller script ? If not, then try and reimport it via Import Package / Character Controller and select Third party controller. Then you can see if you accidentially deleted or added something.
Put "$$anonymous$$ain Camera" tag on your camera: http://answers.unity3d.com/questions/162814/3rd-person-controller-control-inputs.html
Answer by Figster · Jan 20, 2014 at 12:02 AM
I just had this problem, fixed it by enabling the main camera.