x


Unexpected token: ..

Prblem with :

Unexpected token: ..

I'm using code :

var Camera.main = GameObject.Find("Camera");

What wrong ?

more ▼

asked Mar 25 '11 at 05:39 PM

AlexaFuture gravatar image

AlexaFuture
63 6 7 9

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

1 answer: sort voted first

Variable names can't have . in

Also - Camera.main is already set to be an active camera with the Main Camera tag set

more ▼

answered Mar 25 '11 at 05:48 PM

Mike 3 gravatar image

Mike 3
30.7k 10 67 255

(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:

x2030
x199
x35
x12

asked: Mar 25 '11 at 05:39 PM

Seen: 1323 times

Last Updated: Mar 25 '11 at 05:39 PM