Problem with UIAspectRatioConstraint

Hello!

I’m having a problem with designing UI.

My goal is to have a square box as a viewport frame, showing the player (green square). I also want to put the information to the right of it (red rectangle).

Heirarchy:
1

I got my settings looking fine with my studio screen size:
2

But i need this to scale evenly to other devices. Here is what it looks like on mobile:
3

How would i get the true X Size Scale from the red box, and keep the red box from overlapping with it?

Thanks in advance :slight_smile:

No longer have the issue. I just parented it to a frame and set its anchor point to the center. It seems to work fine :slight_smile:

1 Like