- Home /
Compiler error in the Lerpz tutorial at startup
Hello all
I am about to give the Lerpz 3rd person platformer tutorial provided by Unity a go and have opened up the 'TheGame' Scene for the first time. I get the following compiler error.
Assets/Scripts/Camera/FadeoutLineOfSight.js(125,42): BCE0067: There is already a local variable with the name 'newMaterial'.
From what I can tell from a CTRL-F search of the offending script (FadeoutLineOfSight.js), the only other mention of the newMaterial variable is scoped to a for loop much earlier, and shouldn't be creating a problem here.
Does anyone know of a safe fix for this, so I can get on and try this tutorial? I am loathed to just wade in and change the name to something else in case it clashes elsewhere and can't really see the problem that the compiler error is identifying.
Many thanks in advance. My brief experience of the Unity community has been really excellent. I promise to pay it forward and help others when I have finally got to grips with the workflow too :)
Your answer
Follow this Question
Related Questions
LevelStatus in the 3D Platformer tutorial refuses to work(Using Unity 3.5). 0 Answers
compiler error help!! 1 Answer
array of integer array show compiler error 1 Answer
complier Error unexpected char' '. 1 Answer
MySql compiler error help~ (OSX) 0 Answers