CodePudding user response:
//1. The screen on the coordinates,Vector3 Camera. Main. ScreenToWorldPoint (new Vector3 (screenPos. X, screenPos. J y, zInfo));
//2. Turn the screen coordinates
Vector3 Camera. Main. WorldToScreenPoint (new Vector3 (worldPos. X, worldPos. J y, worldPos. Z));
//3. Turn the viewport coordinates
Vector3 Camera. Main. WorldToViewportPoint ();
//4. The viewport to turn the world coordinates,
Vector3 Camera. Main. ViewportToWorldPoint (new Vector3 (viewPortPos. X, viewPortPos. J y, zInfo));
//5. Viewport turn screen coordinates
Vector3 Camera. Main. ViewportToScreenPoint ();
//6. Screen on viewport coordinates
Vector3 Camera. Main. ScreenToViewportPoint ();