Confirming Bug “Project World to Screen” (but all the world to screen space functions) the math is wrong off bottom of screen. I wouldn’t be surprised if this is a bug left in a lot of games. The math is correct for the left, right, top. All those work as expected, but off the bottom the position seems to be exponential off.
The issue is the same with whatever world to screen function you use.
It seems the widget is offset internally somehow. Check the hierarchy and see what is responsible for its desired size - we can’t see it here. You will need to base the calculation on half the desired size, as in:
When you place a widget in the screen, you use its upper left corner. This looks fine, I was half expecting an extra canvas and some anchors. Replace this:
Thanks. Well that works for the top example, the second test case has a different calculation but all that doesn’t matter for the core issue. The clamp is only stopping it from going off screen, not fixing the math in its position offscreen.