Sprites moving on resolution change

Hey there!

I’m having a weird issue when I change the screen resolution of my game. It seems to change the positioning and size of some sprites in the options menu where the resolution change takes place. I have some screenshots to illustrate this:

If you look under both “Sound” and “Music” you can see there are 10 little coloured boxes which are used to indicate the volume level. In the first picture they are correctly positioned, but if you look at them in the 2nd and 3rd pictures their position and size seem to have changed. The embedded images look small but if you open the image in a new tab and zoom in you can clearly see the issue.

However when you change to the med resolution, they seem to be too big for the background, in addition they have moved off centre.

And on the smallest resolution they seem to be too small and off position again.

I’m not really sure what is causing this bug. All the resolutions have the same aspect ratio of 16:9 (they are 1920/1080, 1280/720 and 960/540). In addition both the background and the audio tab are set to point filter mode in the sprite import settings, and are allocated the maximum possible size, as well as being set to Truecolour. I have tried setting them to 16 bit and compressed as well and that has not helped either.

Also, the blue background you can see in the first picture should not be there either? This makes me think that somehow the camera vision is expanding and this might be what is causing the issue but I’m not sure what the cause of this could be.

In addition, this issue doesn’t occur when testing in the actual Unity development environment, through the scene play button. This makes me think it must be an issue with the resolution or the aspect ratio, but I am unsure how to solve it and couldn’t find any relevant issues online. Any help you can give would be greatly appreciated!

Those aren’t all 16:9. That said, I can’t actually see any difference in the screenshots, aside from the blue border, which is probably caused by the different aspect ratio.

–Eric

Sorry, that should read 1280/720 not 1280/760. Aspect ratio definitely is the same.

You probably need to better clarify what’s different in your screen shots. I don’t see anything obvious…

Haha I’m glad it’s not obvious, but I’m still pretty pedantic about stuff like this, and it’s a lot more obvious in full screen.

If you look under both “Sound” and “Music” you can see there are 10 little coloured boxes which are used to indicate the volume level. In the first picture they are correctly positioned, but if you look at them in the 2nd and 3rd pictures their position and size seem to have changed. The embedded images look small but if you open the image in a new tab and zoom in you can clearly see the issue.

Hopefully I’ve explained it clearly enough. I’m not sure how else to explain it.

HubertGerdron’s post here might help:
http://forum.unity3d.com/threads/210497-Pixel-perfect-2d-in-4-3?p=1453868&viewfull=1#post1453868