Vector3 pos = Camera.main.ScreenToWorldPoint(Input.mousePosition+new Vector3(0,0,1));
3D物体加个z轴方向,2D物体不需要加