RaycastHit hit;
    Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
    if (Physics.Raycast(ray, out hit, 1000))
    {
        Vector3 posiont = new Vector3(hit.point.x, hit.point.y, hit.point.z);
        Debug.Log("点击位置:" + posiont);
    }
原文:http://www.cnblogs.com/coderfxx/p/4114431.html