- Home /
Problem with 3D platform tutorial
I just started working on this tutorial. I am just on the first step and I have a compiler error.
Here is the error:
Assets/Scripts/Camera/FadeoutLineOfSight.js(125,42): BCE0067: There is already a local variable with the name 'newMaterial'.
I dont know the first thing about how to fix this.
What are my solutions?
Answer by rutter · Apr 01, 2012 at 01:09 AM
I'm not familiar with the particular tutorial you're referencing, but the error you mention is caused when a particular script attempts to create two variables with the same name in the same scope.
You might be able to rename the variable.
Its an error in the Lerpz 3rd person platformer tutorial. I have just opened it to attempt it and got the same message. As all compiler errors have to be fixed before getting started, it is a bit problematic.
Answer by rutter · Aug 02, 2012 at 12:47 AM
Ah, yeah. Shame those are just left in. Might be good blog fodder to write a few posts detailing all of the errors in those tutorial projects, with quick fixes.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Problem with getting a value from a enum 2 Answers
Can't get this code to work 0 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
I need help with scripting 0 Answers