unity ray bug

来源:互联网 发布:返利软件哪个好 编辑:程序博客网 时间:2024/04/27 16:48
if(true==false){Debug.Log("dds is not null");Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);// make a ray form mainCamera to fingerRaycastHit hitInfo;if(Physics.Raycast(ray,out hitInfo)){if(true==false){Debug.DrawLine(ray.origin,hitInfo.point);}//Debug.Log(hitInfo.collider.gameObject);}}
一直执行啊,神马情况啊。
0 0
原创粉丝点击