- Home /
Forcing an resolution for all android and iphone screens
Its really annoying, almost impossible to work with especially with android as there are wide, like WIDE, variety of phones with different screen ratio/resolution/size. I searched for this and I saw mixed answers, I am sorry but I would really like a help on this.
Is there a way to force a screen ratio for all the phones including android and iphone screen so the same the apk look same on all devices, as the guitext and guitextures I am using really mess up with with phone different to I am testing the game on and I have a big phone (note 2) which obviously not everyone have/ like to have.
Answer by Statement · Mar 11, 2013 at 02:51 PM
Is there a way to force a screen ratio for all the phones including android and iphone screen so the same
Sure, but do you really want to? You can settle for an aspect ratio and stretch to fit your content using the cameras view rect, but that would waste a lot of screen estate and I think your users would wonder why they get a game that doesn't use the entirety of the screen.
Yes, it's a real problem rooted in a real world with real devices and they all differ in many ways. You could make a few supported aspect ratios and adjust to fit accordingly. Another way of tackling the problem is to try to make your game resolution/aspect independent. When it comes to GUI, you could either scale the GUI.matrix or position GUI objects according to screen dimensions.
When making the design of your GUI/game it is very important to keep this in mind, so it doesn't come back slapping you later down the production.
For example the joystick, it messes up how to cope with that ?
The joystick messes up? Can you be more specific? You mean that the pads are floating mid screen or that they get hidden? Position the pads to the correct location on screen. Use Screen.width
and Screen.height
to adjust to screen corners accordingly.
I used the the pixel inset from the inspector to set their positions is that the reason ? If I set their position using code will they like stay ? I am sorry I am really weak at explaining
Your answer
Follow this Question
Related Questions
Which Is The Actual Game?(Max or no Max Screen) 1 Answer
iPhone Screen Size 2 Answers
Object resolution 0 Answers
How to make game recognise Screen resolution on startup 1 Answer