Advertisement

Screen Resolution

Started by June 16, 2017 01:03 AM
7 comments, last by Umar 7 years, 5 months ago

Hello. I'm sixteen and I program in C#, I also know a wee bit of Javascript. I've designed, coded and debugged a game that I started developing a few weeks back. The software I used is unity5 personal for development and illustrator(trial) and InkScape for the art. So its pretty much done, but I have one question, which resolution should I publish it on Android and iOS. I've done a little bit of research and found out that iOS needs 2 builds, one with a lower resolution and the other one with a higher resolution, but I don't quite know what these are. I've also no idea as to which resolution I should build my android version of the game. I designed my game to be modular so a complete redesign should just take a few hours. Thanks alot!

Google maintains a pretty nice list of device resolutions (for iOS devices as well) on their material design website.

Most of the time you will need two general resolutions of assets (one for phones, the other for tablets), but you also need to account for aspect ratio, which can have a much more pronounced impact on your design.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

Advertisement
I've been somewhat involved with this kind of thing at work. Here's some stuff to consider in addition to just pixel resolution:

- Portrait and Landscape modes (and you can disable one if you don't want to support both).
- Different aspect ratios (16:10, 16:9, 4:3, etc).
- Different DPI (i.e. a button might be fine on an iPad at 2048x1536 but unusably tiny on an Android phone at 2560x1440, because although it has a higher resolution, the phone's physical screen is much smaller and it's harder to read and tap on tiny buttons!)

Thank you.

Which reso should I go for then?Isn't there some setup that complies with all android devices?

Isn't there some setup that complies with all android devices?

Unfortunately there isn't really a one-size-fits-all approach to the myriad android devices out there.

It's fairly typical to ship a copy of your resources for each of the supported display densities, and then UI layouts for each of the supported aspect ratios (you can skip a bunch of each if you only support tablets, or only support phones).

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

Thank you.
Which reso should I go for then?Isn't there some setup that complies with all android devices?


In Unity on mobile devices, by default it will use whatever the device's resolution is.

You can then check the screen size and DPI in script, and/or depending on what UI system you're using, use anchors and aspect ratio fitters to scale your UI elements appropriately.

Use high or low resolution textures when the scaling factor becomes too much for a single texture to handle.

Then in the Unity editor, in the Game window, set up a bunch of resolutions and test them all out. Use the scale slider to shrink/grow the rendered viewport to the approximate physical size of the various devices out there and write a debugging menu to simulate different DPI settings.
Advertisement
22 hours ago, swiftcoder said:

 

 

Isn't there some setup that complies with all android devices?

Unfortunately there isn't really a one-size-fits-all approach to the myriad android devices out there.

It's fairly typical to ship a copy of your resources for each of the supported display densities, and then UI layouts for each of the supported aspect ratios (you can skip a bunch of each if you only support tablets, or only support phones).

 

22 hours ago, Nypyren said:

Thank you.
Which reso should I go for then?Isn't there some setup that complies with all android devices?


In Unity on mobile devices, by default it will use whatever the device's resolution is.

You can then check the screen size and DPI in script, and/or depending on what UI system you're using, use anchors and aspect ratio fitters to scale your UI elements appropriately.

Use high or low resolution textures when the scaling factor becomes too much for a single texture to handle.

Then in the Unity editor, in the Game window, set up a bunch of resolutions and test them all out. Use the scale slider to shrink/grow the rendered viewport to the approximate physical size of the various devices out there and write a debugging menu to simulate different DPI settings.

 

I'm already using the Canvas Scaler component and anchoring on my UI, I'll build the game on the most common aspect ratios for both platforms.

3:2, 71:40, 4:3 for iOS and

4:3, 5:3, 16:10, 16:9 for Android. Is this fine, I mean we can provide multiple builds ?.

And

Is it a problem if I scale my sprites using the transform component, I know it affects physics if the game is 3D but does it also take effect if its 2D, will it require afew more computation time like its does whilst in 3D?

17 minutes ago, Umar said:

 

 

I'll build the game on the most common aspect ratios for both platforms.

3:2, 71:40, 4:3 for iOS and

4:3, 5:3, 16:10, 16:9 for Android. Is this fine, I mean we can provide multiple builds ?.

Because there are many resolutions out there that use the same aspect ratio, so building on the basis of the most common ratio the game should work without any problems?

This topic is closed to new replies.

Advertisement