unity 屏幕座標&世界座標相互轉換

世界座標轉屏幕座標:code

Vector3 screenPos = Camera.main.WorldToScreenPoint(pos);

屏幕座標轉世界座標:class

Vector3 worldPos = Camera.main.ScreenToWorldPoint(pos);
相關文章
相關標籤/搜索