- Home /
3dplatform tutorial compiler errors out of box
Hi Trying to learn unity... the platform tutorial seems like a great way, but... I got as far as page 12, where you add Lerpz and press play. It says I need to fix compiler errors before entering play mode. So I tried reloading the scene and just hitting play from the get go. Same error. As a total noob, I don't even know where I can look to see what the compiler errors are. Also, it wanted to upgrade the project before starting, so maybe this tutorial is for an older version of Unity? Help me out! Thanks
Which version of Unity are you running? Why don't you open up the console, and actually tell us what kind of errors you're getting?
I am using version 3.5.0f5 I did not know that the actual errors show up on the console. I'm completely new to Unity, so please have a little patience.
Console reveals: Assets/Scripts/Camera/FadeoutLineOfSight.js(125,42): BCE0067: There is already a local variable with the name 'new$$anonymous$$aterial'.
I have the same issue under 3.5.3f3. alski's solution worked for me.
Answer by alski · Feb 29, 2012 at 01:00 AM
Ok, I fixed this issue though I don't know if it's the right solution.
I found the "FadeoutLineOfSight" Script under Project Scripts/Camera/FadeoutLineOfSight opened it up, dropped down to line 125 and removed the "var" from in front of newMaterial.
It now plays and I haven't witnessed any other issues as a result of the change.
Sweet. That worked... will post again if I find any repercussions down the road.
click the checkmark on his answer that says that this question has been answered!
I don't see the checkmark. Could it be that I don't have that option as a newcomer? I also can't give it thumbs up...
Same error using this tutorial project in Unity 4. The above fix works though either comment out double \\ on line 125 and 126 or delete them and save the file again. your then good to go!