x


Assets/Scripts/Camera/ error on 3D tutorial

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'.

more ▼

asked May 04 '12 at 07:36 PM

Dobby gravatar image

Dobby
1 3 5 5

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered May 05 '12 at 04:04 PM

Sebas gravatar image

Sebas
4k 12 18 45

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5088

asked: May 04 '12 at 07:36 PM

Seen: 396 times

Last Updated: May 05 '12 at 04:04 PM