0
\$\begingroup\$

I am using Unity. When I try the game out in the IDE everything looks pretty good:

enter image description here

But when I am trying to play the same game on a device the quality becomes a great deal worse and you can see it for yourself:

enter image description here

I am using Xiame Redmi 4X and I do not think that it is because of device.

So, how can I fix it? How can I preserve the quality?

I would like to try out this solution, but there is no Android settings in my Inspector for quality:

enter image description here

I would like to preserve at least colors.

And here are setting for my player sprites:

enter image description here

\$\endgroup\$
1
\$\begingroup\$

The render quality settings apply mostly to 3d games. Very few of the features you would usually use in a 2d game are affected by them.

It seems like your play-window uses a different resolution than your device. Click on "16:9" in the upper left corner of the play window, and set it to a custom resolution which is identical to your target device. You should now see the same degration due to scaling which you see on the device and then should be able to troubleshoot it properly.

Regarding why there is that degration: There are a couple of possible reasons. But which one is responsible in your specific case is hard to tell without seeing how you set up your camera, how you render your sprites, etc.

But keep in mind that it wouldn't be wise to look for a solution which looks good on that particular resolution but not on any others, because Android devices come in all kinds of screen resolutions. To keep the image quality ideal you should try to always keep the scaling 1:1 no matter what resolution you have. But that means the amount of game world which is visible on the screen depends on the screen resolution, so different devices will have different game experiences. There is no silver bullet solution to this conundrum. You will have to find a game-specific compromise.

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ My phone resolution is 16:9. It is the most appropriate. Could it be due to me setting pixels per unit of my player to 450? \$\endgroup\$ – hellomates Sep 7 '17 at 14:43
  • \$\begingroup\$ If setting 1:1 resolution how can I make the game appropriate for at least my device which has 16:9 resolution? \$\endgroup\$ – hellomates Sep 7 '17 at 14:45
  • 1
    \$\begingroup\$ @ЯрикТроф 16:9 is an aspect ratio not a screen resolution. According to this website, the screen resolution of the Xiame Redmi 4X is 720 x 1280 pixels. \$\endgroup\$ – Philipp Sep 7 '17 at 14:46
  • \$\begingroup\$ So, does that mean that I should set my aspect ratio to be 9:16? \$\endgroup\$ – hellomates Sep 7 '17 at 14:47
  • 1
    \$\begingroup\$ @ЯрикТроф No, it means you need to set your play window to a fixed resolution of 720 vertical pixels and 1280 horizontal pixels. If you set it to an aspect ratio (any aspect ratio) it will keep that ratio but change the resolution depending on the size of the play window. \$\endgroup\$ – Philipp Sep 7 '17 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.