Oct 8, 2013

[Unity3d] How to convert 3d coords to 2d GUI position

You can use WorldToScreenPoint function. 

var screenPos : Vector3 = GameObject.FindWithTag("MainCamera").camera.WorldToScreenPoint( transform.position); 


No comments:

Post a Comment