Hello!
So, I was doing some pixel art, using as reference a resolution of 768x432 (16:9). I wanted to see how it was looking in Unity.
I installed the Pixel Perfect Camera preview package, dropped the component in the Main Camera of a newly created 2D project and set the reference resolution to 768x432, but it didn’t work quite well.
What happened was: in the Editor window resolution / aspect ratio, I had “16:9” selected. The Pixel Perfect Camera component gave me this warning:
“Rendering at an odd-numbered resolution. Pixel Perfect Camera may not work properly in this situation.
Screen resolution is smaller than the reference resolution. Image may appear stretched or cropped.”
Ok, fair enough. Then, I created a new Fixed Resolution (768x432), and it was perfect! The exact reference resolution I was making my pixel art.
However, when I tried to scale it UP, it didn’t go quite as planned. In theory, it should adapt to this reference resolution while still making the screen bigger, but what I got is that the camera was actually “zooming out”, which was NOT what I want to happen. Here are some images to illustrate what I mean:
- Base 768x432 resolution
- 896x504 resolution (with the Pixel Perfect Camera reference resolution still at 768x432)
- 1280x720 resolution (with the Pixel Perfect Camera reference resolution still at 768x432)
So, that’s what went wrong. How would I do so I can scale the pixel art up with the resolution, in order to keep the same dimensions as the base 768x432 one?
Thanks in advance.



