How to make the UI in same position across all screens?

I wanted the UI to be the same size and position on all screens. I successfully made it the same size, but its position changes when the device’s screen resolution changes. I’ve used UIAspectRatioConstraint.
image
image
image

As you can see, the positions are very different.

1 Like

Change the SizeConstraint to RelativeYY
image

And you might have to play around with the sizing to get what you want
image


Also, it’s best to change the AnchorPoint

Top left: 0, 0
Top: 0.5, 0
Top right: 1, 0

Bottom left: 0, 1
Bottom: 0.5, 1
Bottom right: 1, 1

Left: 0, 0.5
Right: 1, 0.5

Center: 0.5, 0.5

2 Likes

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