Lets say I have a trading card I want to display on screen. In order to not get stretched images, the height and width must be proportional in pixels.
A trading card is about 2.43 inches wide and 3.43 inches tall. Thus you can represent it with UDim2.new(0, 243, 0, 343) and it would look just fine. However, something like UDim2.new(.243, 0, .343, 0) Would not work as the screen stretches the GUI.
The dilemma is, how would I get the GUI to size itself proportionally to the screen so it remains cross compatiable, yet keep a constant ratio of height and width?

3 comments
Works just as I need it. Thanks!
Nice but I would argue that you could just use the scale part of the UDim2 which is UDim2.new(xscale,ypixels,yscale,ypixels)
it is scale.