I’m moving an object in UMG in screen space, however it’s moving to the incorrect location.
Below you can see the window is 1280x720, and the object is set to be at 1269x685.
HOWEVER: it’s only at about 65% of the screen, which is where it would be if the resolution was at 1920x1080.
**GEngine->GameViewport->GetViewportSize() **reports 1270x686, and GSystemResolution reports the resolution to be at 1280x720.
So why is the position acting as if it’s 1920x1080? Is this an unreal bug or something I’m doing wrong? (The dot is anchored to top left in the root canvas panel)
Edit: **GEngine->GetGameUserSettings()->GetScreenResolution() **returns the proper size of 1920x1080. The proper math can get it looking right, but everything hits the fan once the screen is resized in any way.
TL;DR I just want that dot to be under the mouse, but getting the mouse position (1280,720) and putting the dot there puts it at the wrong spot, cus unreal thinks the screen size is 1920x1080. How do I solve this?