Hi all, I found myself with a big problem when you have almost finished my game and esque I fail to make it work in the resolutions of different android, do not use the GUI but I use sprites in any order with experience could me help solve it?
sorry for my English I’m using the translator
Hi, so far unity does the scaling on its own. What actually you have to tweek is the orthographic camera size based on the size of the art you have created the game for. Furthermore following is the technique which I use:
- Calculate the base ratio(ratio for the which the art is created) .
- Calculate the current screen ratio by Screen.width/Screen.height if the game is for portrait mode and vice-versa.
- Then set the orthographic size based on: if current ratio is greater than base ratio and vice-versa.
Moreover I think you shall check out this post:
http://forum.unity3d.com/threads/211905-android-resolutions
and how could calculate the exact size of my camera?
Please checkout the link in my previous post. You’ll definitely come to know about how camera is tweaked.