Difficulties of UI positioning when it comes to UI constraint

After some tests with the Size Constraints, I find it difficult to manage guis for it to be in the middle whether it comes to X and Y-axis. Because of this, when it comes to sizes such as squares, very-long rectangle monitor, or regular-sized monitor, it’s difficult to adjust the frames to be in the exact coordinate, even when you want it to be in the middle. What’s so challenging i that finding the exact coordinate. Tools like UIAspectRatioConstraint gave no solution on whatsoever. It seems that when you align frames to the center using the XX, you can’t make it adjust to the center accurately, or even you align the frames to the bottom-center using the YY.

Hint: Anchor Points

What can we do fix this problem?

1 Like

You can position a GUI element in the center by setting both the X and Y anchor points to be 0.5 and then setting the X and Y scale positions to also be 0.5. No matter the size of the element or the parent element, it’ll always be in the center.

1 Like

Perfect Solution! Love it! Seems like I get the point of using anchor points. :slight_smile: