- Home /
Resolutions and pixel perfect in 2D
Okay so in unity pixel perfection can only be achieved by setting sprites to a power of 2, setting filtering to point, using a pixel-snap material and using a script to divide the orthographic camera size by the pixels per units and then by 2, like so
Camera.main.orthographicSize = Screen.height / 32.0f/ 2.0f;
of course this changes the camera size so on smaller resolutions i can only imagine that it will be too far zoomed in to see whats going on, and on bigger resolutions will see too much, and to make matters worse this is as far as i can see the only way to deal with pixel perfection in unity at present
So anyone had any creative ways to keep the screen the same size for the more popular resolutions? im all ears
Your answer
Follow this Question
Related Questions
Handling different resolutions? 2 Answers
Keep Aspect ratio/Letterbox and maintain pixel perfection 0 Answers
Change camera FOV to keep 3d scene same size on screen, independently from resolution 0 Answers
How to letterbox the screen and have pixel perfection in a 2d game 0 Answers
Scaling Orthographic Camera Up 2 Answers