unity中UI坐标转3d世界坐标
时间:2017-05-03 14:13:03
收藏:0
阅读:824
方法:
public static Vector3 UIScreenToWorldPoint(Vector3 uiPostion) { uiPostion = UICamera.mainCamera.WorldToScreenPoint(uiPostion); uiPostion.z = 1f; uiPostion = Camera.main.ScreenToWorldPoint(uiPostion); return uiPostion; }
原文:http://www.cnblogs.com/unityzc/p/6801520.html
评论(0)