Get point on screen with camera orientation?

Hopefully I can describe this accurately, if not I will post video.

I have a point in world space being converted to screen space via camera.WorldToScreenPoint(), however it does not appear directly over the target world space coordinate, and this seems dependent upon the orientation of the camera to the world point.

IE. it appears over top of the point if I look straight on it, otherwise it appears just off to the side with varying degrees of eccentricity depending upon the camera’s orientation to it.

I need to know how to fix this.

Much thanks to any help offered.

Please show your code and some examples of the problem. I’ve used this function many times with no such trouble.

I suspect the problem isn’t WorldToScreenPoint, but what you’re doing with the result.

I figured it out, but thank you for the assistance.

Turns out it was because my canvas was in worldspace, when it ought to have been in screen space overlay. :slight_smile:

1 Like