How to get current Camera coordinates in a script

Hi,

I’m writing a log file that I want to use to record the time as well as the current camera coordinates (X, Y, Z) you can see in Inspector as well as rotation coordinates. Because the camera is attached to a First Person Controller script this would allow me to record all character movement. What are the functions to access this data? Thanks!!

Camera.main.transform.position should do it.

http://unity3d.com/support/documentation/ScriptReference/Camera-main.html