中文
Appearance
Camera.ViewportPointToRay(point)
Camera
返回从摄像机通过视口点的光线。
产生的光线位于世界空间中,从摄像机的近平面开始,并通过视口上的指定坐标
Vector3
Ray
let camera = this.gameObject.GetComponent<Camera>(Camera); camera.ViewportPointToRay(new Vector3(1,1,1));