|
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?
(comments are locked)
|
|
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).
(comments are locked)
|
