Hi guys, I know there are a lot of topics about pixel art on Unity and I tried to look for a solution for 3 days but could understand why this is happening in my project.
I was just trying to create a pixel art tilemap but my tiles keep having a problem. I try to slice my tiles from the sprite sheet and it works nice, when I look to the tile on Scene and Game it’s fine, but as soon as I press Play the tiles change. I noticed that what is happening is that on Play my tiles are rendered like I was slicing them 1 pixel up.
To solve that I just sliced my tiles 1 pixel down and it worked, but I would just like to understand why this is happening.
- My resolution is 16:9
- Camera Size (Cinemachine): 720/(2*64) = 5.625
- Pixel per Unit: 64
- Tiles Sprite Sheet is POT
- Each Tile is 8x8 so my grid is 0.125x0.125
- I am using an asset called Pixel Perfect Camera GGEZ, put this script on my camera and adjusted the Pixel per Unit to 64
Can anyone help me to understand that? All sprites are rendering fine (there is no distortion), even for the tiles, but I just don’t understand why the tiles are rendering 1 pixel up from my spritesheet when I press Play. Also, on the tile palette they are rendered fine, exactly how I sliced on my spritesheet, just after pressing play they change.