Download

Local to absolute Position in UMG

Hey, there is this nice little Node in UMG:

e93702e0383799abf4af55b47b256356fa94e4e1.png

But unfortunately it’s pretty useless since it returns the absolute absolute position, the position in Windows (or whatever Operating System). So it only works fine if the game runs in fullscreen.

The Node itself says “Absolute coordinates could be either desktop or window space depending on what space the root of the widget hierarchy is in.”.

How can I define in which space the root of the widget hierarchy is in? If I can’t, is there any other easy way to convert local (relative to parent) positions to absolute (relative to viewport) positions in UMG? At the moment I am converting this manually, but this only works fine if I know where the anchor points are set, and I would like to have a solution independent from anchor point positions.