Convert World Location To Screen Location is offset

Hey people, I’ve set up these nodes in order to make a crosshair point follow my mouse:

How is this supposed to work? Are we tracing something in the world? Is this why you’re getting projection involved? Asking as I do not not understand the intent. The mouse is not in 3d world. You can project it using direction from the camera and the then convert back to 2d but I don’t think that’s what is needed.


If you’re doing this full screen, you might be able to get away with:

What’s important here is also how the widget is anchored:

image


Another way:

Keep the canvas Visible so we have something to move over. This should work for any window size but may not work when you resize the window run-time.

edit: offset, so the widget is in the very centre. updated the 1st image, too.

2 Likes