Hi all,
I am doing some of my HUD stuff with UMG widgets, but some of it inside the HUD blueprint using Draw Texture Simple functions and stuff. What I want is that when the viewport size changes, the things drawn by my HUD blueprint and the things drawn by my widget blueprint both scale in the same way, so they line up. I am aware that by default UMG uses the length of the smallest side and uses that to scale how big the things are that it draws, but how does it work with scaling the position of the things it draws?
I assumed here that what it does is gets the size of the shortest side of the viewport and divides it by 180 to create a multiplier. Then it could apply that multiplier to both the scale of the objects and the position of them. So, I created a HUD blueprint that worked the same way. But when I scale the viewport they don’t line up, so my assumption must be incorrect. How does UMG scaling work and how can I simulate that in my HUD blueprint?
Thanks in advance!