- Home /
3D Platform Tutorial Problem
I can't seem to use the 3D Platform Tutorial, as I get this error:
Assets/Scripts/Camera/FadeoutLineOfSight.js(125,42): BCE0067: There is already a local variable with the name 'newMaterial'.
Does anyone know how to fix this?
Answer by aram.du · Mar 01, 2012 at 09:32 PM
I had the same problem. Managed to find the solution here. =D
Open the script (Assets/Scripts/Camera/FadeoutLineOfSight.js) either by double clicking it or opening it in a text editor of your choice.
Go to line 125. It should look something like this: for (var newMaterial in fade.alphaMaterials) Destroy(newMaterial);
Rename the "newMaterial" variable on both lines to a name of your liking. You should get something like: for (var newMaterialA in fade.alphaMaterials) Destroy(newMaterialA);
Save and that's it.
Your answer
Follow this Question
Related Questions
3d Platform Tutorial is broken right at the start 0 Answers
castle 3D a unity 0 Answers
MAKE A LEVITATING PLATFORM REACT TO A PLAYER'S JUMP? 1 Answer
FPS tutorial Spark problems 0 Answers
Al Robot Animation Problem 0 Answers