There seems to be some kind of graphical/rendering bug. I am making different themes for my video game and for some reason, when I switch themes(a different sprite sheet), there’s a black border around it. I made sure the rendering options are the same on both sprite sheets, and both sprites were the same resolution. Can someone please explain why this is happening?
I had a few of these occur as well. The actual black line is because the background of your cam is black and Unity is not so happy with your sprite size.
A few things you should check:
Your sprite should be NPOT. If it isn’t make it so and fill the added space with transparency.
Check the filtering and use Point Filtering
Play with the pixel-to-unit size (set it 1-on-1 just to see what happens and adjust from there)
Switch on pixel snapping (i.e. go pixel perfect) or use a custom material with the default sprite shader
I was actually thinking about spending some time learning this Unity graphics engine. So I thought that I would start out with something simple, like putting a border around a sprite then manually creating a map from each sprite with that border. Well that would have been a lot of work for a graphics engine that is supposed to represent 2018, but then I realized what would seem completely illogical. There isn’t a way to put a border around the sprite, wow. I’ll wait for the next future, the real one.