A problem with UI positioning

Okay so, I got an ImageLabel right here.

The ImageLabel’s AnchorPoint is set to 0.5, 0.5, and it has a UIAspectRatioConstraint, and it also is sized and positioned using scaling.

image

Now, when I test it on other devices, it’s not positioned correctly.

As you can see, there’s a gap.

This even happens when I remove the Toolbox.

Before removing Toolbox:

After removing Toolbox:

I know that setting AnchorPoint to 0,0 would fix the problem, but I want it to position correctly with AnchorPoint being 0.5, 0.5.

How can I fix this?

1 Like

You could set the position to {0, 0}, {1, 0} and the anchor point to (0, 1).
Is there a reason you want to keep the anchor point at (0.5, 0.5)?

1 Like

Not really, it’s just something I tend to do whenever I work with UI.

Thanks for your help though! Your solution works.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.