UGUI获取UI的2D坐标
摘要:
如果是UI组件,先把世界坐标转换成屏幕坐标,替换掉Input.mousePosition即可Camera camera = GameObject.Find("Main Camera").GetComponent<Camera>();Vector3 screenPos = camera .WorldT 阅读全文
posted @ 2017-10-24 11:08 Vicky_Liu 阅读(377) 评论(0) 推荐(0)
浙公网安备 33010602011771号