Download

How to keep widget text in place when screen resizes?

I’m trying to setup a custom HUD display with some counters to update on screen. The trouble is, even with anchors, the text moves out of position when the screen sizes change. Since the game will be on multiple devices with different screen sizes, this will be a problem. Is there a way to keep the text position relative to the HUD image? I’ve tried anchoring from different positions but that hasn’t helped much.

I was able to get something passable by manually moving the anchor points to where I wanted the text to appear on screen. If there’s a better way, please let me know.