Vector3 p = cam.GetComponent().ScreenToWorldPoint(new Vector3(0 , 0, cam.nearClipPlane));
this gets the center of my screen. How would I start making measurements like getting the left side of the screen, right side of the screen, bottom, and top? I know I’d have to change the first to parameters in ScreenToWorldPoint but I have no idea what I should use.
That should be throwing an error, so I’m surprised you’re even getting values.
Screenspace is defined in pixels. The
bottom-left of the screen is (0,0);
the right-top is
(pixelWidth,pixelHeight). The z
position is in world units from the
camera.