Quantcast
Channel: Questions in topic: "camera ratio"
Viewing all articles
Browse latest Browse all 16

Keeping screen width and scaling screen height for different screen resolutions

$
0
0
Hi guys, I need my game to have a constant screen width for every mobile device in the market. For this I need to scale the screen height in order to keep the same screen width, even though the screen ratio varies. Here you have an example: ![alt text][1] ![alt text][2] You see the width is the same for both resolutions and only the screen height varies. Any idea of how I can do this? Thanks in advance! [1]: /storage/temp/24901-forest-gameplay.png [2]: /storage/temp/24902-forest-gameplay+(1).png EDIT: Found this: http://gamedesigntheory.blogspot.ie/2010/09/controlling-aspect-ratio-in-unity.html Is there a way to edit it to scale height instead of adding black frames? (keeping the width) Up!

Viewing all articles
Browse latest Browse all 16

Trending Articles