- Home /
Can I make my 2D game's sprites the exact same amount of pixels no matter what resolution the game is running at?
I'm making a game with pixel art, but when I run the game at various resolutions, some of the pixels stretch and it looks really awkward. It works fine on 1024x768.
I found something before that said I could use this to have my game's sprites pixel perfect:
camera.orthographicSize = Screen.height/2/48;
but that doesn't make it exact on all resolutions, including my monitor's native resolution (1600x900).
How can I make it so all resolutions are pixel perfect? Is there a formula I can use?
Answer by SaraCecilia · Oct 14, 2014 at 07:42 AM
Hi, check out this solution: http://stackoverflow.com/questions/25152357/unity3d-correct-orthographic-size-of-camera
Your answer
Follow this Question
Related Questions
My Text gets blurry with Pixel Perfect Camera and Upscale Render Textrures Active 0 Answers
How to retain absolute gameobject size in pixels no matter the resolution? 2 Answers
Pixel Perfect Camera Consistent World Size 0 Answers
Restricting ratio of a 2D Game 2 Answers
How to letterbox the screen and have pixel perfection in a 2d game 0 Answers