I am trying to use the 3d tutorial but the downloaded game won't run as there is a script error.
Has anyone else had this problem when they load the game tutorial?
Assets/Scripts/Camera/FadeoutLineOfSight.js(125,42): BCE0067: There is already a local variable with the name 'newMaterial'.
Double click on that error in the console. It will take you to that variable within the script. Check the script and look for two variables with the same name "newMaterial". Try to delete one and see whther this fixes your problem. It sounds like you copied/pasted parts of the script and the variable is declared twice.
answered May 05 '12 at 04:04 PM