Unity判斷指定物體是否在屏幕範圍內

Transform camreatra = Camera.main.transform; Vector3 viewPos = Camera.main.WorldToViewportPoint(target.transform.position); Vector3 dir = (target.transform.position - camreatra.positio
相關文章
相關標籤/搜索