不解

屏幕坐标转化为世界坐标



        print (camera.ViewportToWorldPoint (new Vector3 (Input.mousePosition.x/Screen.width,
                                                         Input.mousePosition.y/Screen.height,
                                                         10)));
z坐标必须为非零的数字。


同步自网易博客 (查看原文)

评论