Scaling GUI elements to maintain a 4:3 aspect ratio

I’m making a GUI miming an old camcorder with a 4:3 aspect ratio.

The problem is when fitting to other screen sizes, the 4:3 aspect ratio is lost:

I’ve tried to use UIAspectRatioConstraint, but that didn’t work.
I know I could do this through scripting, but I was wondering if there is an easier way to achieve this.

A UIAspectRatioConstraint should work for this. Are you sure you put the constraint in the right object(s)?

1 Like

I might not be using them correctly. I didn’t do too much research on them and kinda just fiddled around to see what worked. I put the constraint on the Left frame, but instead of moving inward when the screen became more narrow, it would move outward. Any insight is appreciated.

Edit: I figured it out, it was UIAspectRatioConstraint, I was just using it wrong lol. Thank you for replying.

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