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?

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.