0
\$\begingroup\$

I am making my first 2D game in Unity and something has been bothering me. If I'm in the scene view, my game looks fine but when I go to the game view the pixels in the sprites aren't rendered correctly and everything looks distorted.

enter image description here enter image description here

Does anyone know an answer to this?

\$\endgroup\$
3
  • \$\begingroup\$ Btw my pixel size is 16 by 16 \$\endgroup\$ Commented Nov 6, 2020 at 10:16
  • \$\begingroup\$ You're not maintaining an integer pixel to texel ratio. See some past answers on this topic. The quickest fix is to use the Pixel Perfect Camera in Unity, if you don't want to calculate the ratios yourself. \$\endgroup\$ Commented Nov 6, 2020 at 10:23
  • \$\begingroup\$ @DMGregory Thanks! I used the Pixel Perfect Camera component and it worked. \$\endgroup\$ Commented Nov 6, 2020 at 11:04

1 Answer 1

0
\$\begingroup\$

You're not maintaining an integer pixel to texel ratio. See some past answers on this topic. The quickest fix is to use the Pixel Perfect Camera in Unity, if you don't want to calculate the ratios yourself. – DMGregory♦ (see comment)

\$\endgroup\$

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.