I worked on Unity 3D Car Tutorial which can be found in “http://unity3d.com/gallery/demos/demo-projects”. After finishing first pdf, the second one says, the car should move, but will flip etc.
However, my car doesnot move and strangely, my game screen doesnot get maximized either when I use mine to play.
What am I doing wrong ? Appreciate feedback, pointers and may be actual place where I am going wrong
When I open the console, I see 2 errors. Appreciate the community feedback
UnassignedReferenceException: The variable reflectingMaterial of ‘Generate2DReflection’ has not been assigned.
You probably need to assign the reflectingMaterial variable of the Generate2DReflection script in the inspector.
Generate2DReflection.Start () (at Assets/Scripts/CSharpScripts/Generate2DReflection.cs:18 )
UnassignedReferenceException: The variable brakeLights of ‘Car’ has not been assigned.
You probably need to assign the brakeLights variable of the Car script in the inspector.
Car.GetInput () (at Assets/Scripts/JavaScripts/Car.js:254)
Car.Update () (at Assets/Scripts/JavaScripts/Car.js:91)
Okay, Feeling Good. Solved my own problem. Just to help others, if they were to face same problems. I thought of documenting
In Car Game Object,
1)Go to Inspector and in Brake Lights, choose CAR_Lights
This will get rid of the brakelights variable error
2)Again Go To Inspector and remove Generate2DReflection component. That reflecting material. I am not sure, if it came out of box from tutorial or I added. Whatever, if you remove, things are good and car moves