获取点
获取鼠标点击的坐标位置
Ray ray = Camera.main.ScreenPointToRAy(Input.mousePosition);
RaycastHit hit;
if(Physics.RayCast(ray,out hit))
{
lineRander.SetPosition(1,hit.point);
}
获取鼠标点击的坐标位置
Ray ray = Camera.main.ScreenPointToRAy(Input.mousePosition);
RaycastHit hit;
if(Physics.RayCast(ray,out hit))
{
lineRander.SetPosition(1,hit.point);
}