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?