Hey everyone. I am developing a game for android devices, and I use
Screen.SetResolution(1280, 720, true);
to set the resolution of the game.
However in devices that are not in a 16:9 ratio. It appears to stretch either horizontally and vertically.UI also get stretched. I use
cam.aspect = Screen.width/Screen.height;
to set the aspect ratio. What do I do so it doesn’t stretch but want the game to fill the whole non-16:9 screen