x


Camera Position undetectable?

    function update(){

print(Camera.main.transform.position.x);

}

Nothing gets printed. I've also tried transform.position.x and that doesn't print anything either. can anyone duplicate this problem? I also have a lateupdate function, could that cause a problem?

more ▼

asked Aug 05 '10 at 10:13 PM

Jordan Miller 2 gravatar image

Jordan Miller 2
348 47 51 57

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

1 answer: sort voted first

the u in Update needs to be uppercase.

more ▼

answered Aug 05 '10 at 10:16 PM

Jordan Miller 2 gravatar image

Jordan Miller 2
348 47 51 57

If this answer solved your problem, please mark it as the accepted answer.

Aug 06 '10 at 01:52 PM skovacs1
(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:

x3011
x1281
x886

asked: Aug 05 '10 at 10:13 PM

Seen: 720 times

Last Updated: Aug 05 '10 at 10:13 PM