Prblem with :
Unexpected token: ..
I'm using code :
var Camera.main = GameObject.Find("Camera");
What wrong ?
Mar 25 '11 at 05:39 PM
Aug 13 '11 at 01:44 AM
Variable names can't have . in
Also - Camera.main is already set to be an active camera with the Main Camera tag set
Mar 25 '11 at 05:48 PM
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
The best place to ask and answer questions about development with Unity. Check out our FAQ for more information.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
asked: Mar 25 '11 at 05:39 PM
Seen: 1323 times
Last Updated: Mar 25 '11 at 05:39 PM
Unexpected Token: Collider.
Converted a script from C# to JS, Unexpected Token: .. What did I do?
Unexpected Token }.
3 java errors on a basic shooting script?
java script error
SwipeControl package error in unity iPhone 1.7
BCE0043 Unexpected Token: Please Help!
what is an unexpected token
How "include" the Raycast?!