World Space to Screen Space Function is wrong off bottom of screen

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.

alternate version

Here’s a video demonstrating the issue

I’ve tested it more ways than this with the same results.

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:

1 Like

How does the desired size play into the bottoms screen position? I thought that was just for clamping max values
The widget is

1 Like

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:

with Desired Size * 0.5, see if it behaves.

1 Like

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.