Download

UMG: Project world to screen widget position, or nearest position on the screen.

I have a widget added to the viewport that adds markers for objectives in the world and positions them accordingly, however, when the objectives are offscreen I need to get the nearest position on the screen/widget edge. Is there a function for this?

There might be a better way of doing it, but I use a clamp node (With the screen resolution as the bounds plus some additional offsets) on the returned screen position, and it seems to work well.

Thanks, I’ll try that.