I have an 3d object in 3d space displaying on the Touch screen (Unity iPhone) that is in front of the camera.
In a script tied to this object how can I determine what the 2d screen coordinates are for this object on the Touch screen?
There is this lovely function, WorldToScreenPoint in the Camera API. Use it like this-
There is also one which gives you the coordinates in normalised screen space- if that's what you need instead: WorldToViewportPoint(Vector3).
answered Oct 22 '11 at 06:34 AM