public void Update()
{
if (Input.GetMouseButton(0))
{
Vector3 pos = UICamera.currentCamera.ScreenToWorldPoint(Input.mousePosition);
test.transform.position = pos;
}
}
NGUI对象跟随鼠标拖拽移动
(2)个小伙伴在吐槽
- 我又来了,您高兴吗?!
- 不错,不错,看看了!