I’m having trouble with this UI being rectangular on PC and mobile (how I want it) but square on tablet. I know it’s to do with tablets screen ratios being more even, but is there some sort of UI constraint that forces a specific shape?
Just use a UIAspectRatioConstraint, it keeps the shape the same in all platforms. Make sure the anchor point is in 0.5,0.5 so that it stays in the same position. There’s a plugin that does it automatically:
Just to add on, if you want to do this manually, just get the ratio you want by taking the absolute x size and divide it by the absolute y size. That is the ratio you use for a UIAspectRatioConstraint.
It doesn’t really need a plugin but I guess the utility is there.