using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { Camera cam; void Start() { cam = GetComponent(); } void Update() { Vector3 ojbectToScreenPos = cam.WorldToScreenPoint(3D物件.position); //Vector3 objectToscreenPos = cam.WorldToScreenPoint(transform.position); Debug.Log(ojbectToScreenPos); } }