//方式一,使用API获取 var rtrans = gameObject.GetComponent (); Vector3[] worldcorners = new Vector3[4]; rtrans.GetWorldCorners(worldcorners); //方式二,手动计算 var cam = GameObject.Find("Camera").GetComponent (); var cam_h = 2 * cam.orthographicSize; var cam_w = cam_h * Screen.width / Screen.height; var canvasObj = GameObject.Find("Canvas"); var canvas = canvasObj.GetComponent