- Home /
Unity 3.5 converted CarTutorial now has problems
Hi, I am attempting some game development and would like to learn Unity since it looks awesome, but I get an error after opening this CarTutorial project which it apparently had to convert (clearly was built in a previous version). I was hoping to start learning to use it before attempting to troubleshoot problems with a project. Anyone aware of the following errors and how to fix them?
UnassignedReferenceException: The variable target of 'CarCamera' has not been assigned. You probably need to assign the target variable of the CarCamera script in the inspector. CarCamera.LateUpdate () (at Assets/Scripts/CSharpScripts/CarCamera.cs:34)
I have located the script, but don't know how to change what the target is. I think maybe it's the Main_Camera object, but don't know how to make the change so the script references Main_Camera instead of CarCamera (I could also be totally wrong).
Please help?
Answer by Adamcbrz · Apr 10, 2012 at 09:34 PM
It looks like you opened up TheTrack scene from the car tutorial. This is a starting point for a project if you want to make a working game you need to follow the tutorials ( http://unity3d.com/support/resources/tutorials/car-tutorial.html ). This will walk you through the process of hooking it all up. If you want to see the project in a complete state open up the CompleteScene. If for some reason you don't have look for the complete project on the Asset Store.
Hope that helps
Yeah, sorry. $$anonymous$$ind of embarrased. I though I had right-clicked on the scene and clicked open. (This time I went to Open Scene in the menu and it worked.)
$$anonymous$$y bad...
Your answer
