方法:
public static Vector3 UIScreenToWorldPoint(Vector3 uiPostion) { uiPostion = UICamera.mainCamera.WorldToScreenPoint(uiPostion); uiPostion.z = 1f; uiPostion = Camera.main.ScreenToWorldPoint(uiPostion); return uiPostion; }