Hello,
I’m currently resizing an image to be 3/4’s the size of the screen. This worked great on ipad, where the screen was 4:3, and the image in turn was true to the 4:3 sizing (original image size is 512 x 386 or there abouts).
However, On some other (newer) devices, screen size is 16:9, and on PC are free aspect ratio.
So, when I create an image like so:
GUI.DrawTexture(Rect(10,10,(Screen.width/4)*3,(Screen.height/4)*3), image);
it doesn’t scale well on other devices.
What could I do to preserve the aspect ratio of the image, but still making the image larger to fit devices better?
Thanks, Bobblehead