• Unity
  • SpriteAttacher and alpha

Im using SpriteAttacher but can't get the alpha right.

I can see in the video from @Mitch that the sprite has the standard import settings "Sprite (2D and UI)", if I use that I get white artifacts all over the transparent areas.

If i use advanced settings and untick "alpha is transperency" it gets much better but i will still get white borders around the sprite.

I have tried to add a Packing tag and use unitys sprite packer, but that doesn't show any changes.

What can I do? Should the image file have premultiplied alpha before i import to Unity? and if that is the case how can i do that?
Or is it something else that i need to do with my sprite?

Related Discussions
...
  • Изменено

If you aren't going to use the Packing Tag stuff, then you must pre-multiply your own alpha. Photoshop can't export pre-multiplied PNG files sadly. TGA and manual alpha (or just leave it in the PSD and do your own alpha, make sure the BG is matte black or you'll encounter the same fate as PNG's occasionally).

The packing tag stuff should work... I haven't verified in 5.1.x yet though.

I'm on Unity 5.0 and i'm using the packing tag stuff, but I still get the white edges 🙁