Does anyone have any idea of what caused these lines? It is as if the tiles are not fully connected so you can see through and see the background. If I change the background color, then the lines will be that color I changed it to. I circled the lines in white.
Toggle the “pixel perfect” or “pixel snap” option. It’ll either be on your sprite material or your canvas, depending on what you’re using.
Why?
It’s hard to explain unless you understand fragment shaders, but when you draw a sprite, it’s pixels don’t line up perfectly with your screen’s pixels. Because of this, a sprite pixel may fall between 2 screen pixels and it must choose which one to draw to. Where that split occurs, the above sprite drew it’s pixels slightly higher and the below sprite drew it’s pixels slightly lower.