- Home /
Why my Pixel Art Tile Sprite is Rendering 1 pixel up from my slice (just while playing the project)?
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.
Answer by Drahedron · Apr 19, 2020 at 06:02 AM
Please can anyone help me with that? Still could not find out what is causing it.
Your answer
Follow this Question
Related Questions
Make camera crop scene instead of scale/stretch it 0 Answers
Changing position of child on animation. 0 Answers
2D Pixel art with Perspective Camera 1 Answer
Can I change tile colours depending on proximity to the player? 0 Answers
2D Sprite is showing in Sceneview, but not in Gameview. The Z-Axis is not the problem(I think). 0 Answers