- Home /
NullReferenceException Error
Hi,
i am actually doing the Unity Tutorial with Lerpz.
I went through it until this point where it says
When u play Start u should be able to move lerpz with the control keys.
So its not working for me and i get this error.
NullReference Exception FuelCellGlowLookAt.Update () (at Assets/Scripts/Misc/FuelCellGlowLookAt.js:7)
and i have no clue what to do to solve it.
If u need any more information just ask me.
Greetings.
Answer by BiG · Nov 19, 2012 at 09:58 AM
Maybe, because you don't have a Camera tagged as "MainCamera". A simple search on Google, in fact, lead to this:
http://answers.unity3d.com/questions/49889/nullreferenceexception-fuelcellglowlookatupdate-at.html
I hope that's the same problem.
Answer by eXon2 · Nov 19, 2012 at 10:08 AM
yeah that was my problem..
switched my NearCamera AND my Lerpz to the Tag Player
so moved my Near Camera back to MainCamera and it worked.
big thx for the fast answer.
best regards.
yeah i did, i am new to the forum :D
my issue is solved but my character is still not moving xD
$$anonymous$$mm, it seems a new problem, independent from the preceding one. I have no experience with that tutorial, I recommend you to open a new question, and maybe reporting the code that you are using! $$anonymous$$aybe other users may point you to the solution.