Unity怎么将物体的坐标一直为鼠标的坐标

2025-02-26 10:00:30
推荐回答(2个)
回答1:

1.物体要有Collider
2.编写脚本,加入OnMouseEnter()事件,看看手册怎么用,然后在该事件写
if(Input.GetMouseButtonDown(0))
//传送到目标点

回答2:

你可以到paws3d看看有没有相关问题的解答