- Home /
Transparent bleed in a sprite generated at runtime
Hi! I am making a 2D game, and I need to use irregular sprites which are generated at runtime, and have transparency around them. I make an empty square sprite, then place some coloured pixels inside it with a script, and some pixels around these pixels need to remain transparent. However, at non-pixel-perfect camera sizes (which I need to zoom out), the edges of these sprites create a pixel bleed effect, which results in ugly seams between my sprites, in the colour of my background. How do I fix this?
After looking a bit into the problem I have noticed that the bleed does not depend on the background colour, it is simply black.
Your answer
![](https://koobas.hobune.stream/wayback/20220612162101im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Scale down spritesheets without breaking anything else 0 Answers
2D Top-Down 3D-Like effect 2 Answers
Sprites Mask with Custom Range not working after build 2 Answers
2D Games with Unity? 2 Answers
Make 2D sprites glow? 4 Answers