How to get spritesheet to clip correctly?
I'm trying to make a pixelized 2D game. I had to look at several guides to figure out how to get things to appear with pixel-perfect precision and it worked, but now I am having an issue where my sprite animation isn't clipping properly:
The boundaries appear to be drawn correctly on the spritesheet: Sidenote: the "Pivot Unit Mode" keeps changing to Normalized, no matter how many times I change it to Pixels like so many of these tutorials tell me to do.
I'm also using the Pixel Perfect Camera, in case that matters—Assets Pixels Per Unit 16, Reference Resolution (X 256, Y 224), Upscale Render Texture unchecked, Pixel Snapping unchecked, Crop Frame (X unchecked, Y unchecked).
Okay, so it's been awhile but I wanted to make sure I come back and comment on this: I think all I had to do was crop in both X and Y direction to make it appear like I wanted.
Answer by AaronEkstrand · Oct 23, 2020 at 06:19 AM
It's somehow worse than I thought... I changed the Pivot positions all to Center and this happened:
I thought I had the pixel-perfect feature figured out too, but I noticed stretching in the checkerboard tiles when I resized the game window. Looks like it's probably happening at the gaps between the tiles. How can I fix this?
Okay, so I fixed the stretching between the checkerboard tiles by checking Crop Frame (Y) on the Pixel Perfect Camera. Spritesheet clipping is still terrible as ever, though.