Unity 2D Sprite/Texture problem (Solved)

Hello again.
I have yet another problem… This time with sprites.

I have made sprite sheet with 100x100 pixel blocks next to each other.
Art is made with GIMP,. Sprites have mostly just one color making simple shapes, and everything looks fine until I export them to PNG and add them to Unity.
In Unity I sliced the PNG in Sprite Editor using Grid 100x100. Sprites still look fine in Sprite Editor.

But when I put them in Scene/Game, this happens… They have weird outlines and/or somekind of shading. Game view looks terrible…
Why is this happening? What can I do?

Hey @JoKe90 , the dark areas should not be there unless you have something related to lights and shadows enabled.
Can you attach the a sample project so that we can take a better look at your setup?

Hi. I attached cleaned up version of my project, leaving only the sprite left.

2258711–151000–2DGameProject.rar (203 KB)

I had a look at the project. The filter mode of your tile texture is set to bilinear which would interpolate between neighbouring pixels to get the final pixel colour. This is not good for the edges of certain tiles as it would interpolate between coloured pixels and blank pixels, resulting in the lines you see between tiles.

You can solve this issue in one of two ways:

  • Disable filtering and anti-aliasing

  • Change the filter mode of your texture to “Point”

  • In Project Settings → Quality, set Anti Aliasing to “Disabled”

  • Extrude the edges of your tiles by 1 pixel

  • A simple way to do this would be to apply a packing tag to your texture so the sprite packer can automatically extrude your packed tiles.

Thanks! I used the first way to solve my problem, because I think that I don’t need antialiasing for simple sprite/tile based game.

Thank you so much! This was driving me batty