- Home /
Non transparent areas of sprites becomes transparent on android
Hello
I have a problem regarding transparency on sprites.
If I import an image that has some parts transparent as a sprite, the whole sprite will become semitransparent. This can be seen in the sprite editor or if I use any of the default sprite shaders when I apply it in a sprite renderer.
It does not occur unless the image has some parts with transparency.
I have tried with multiple images made with GIMP and Paint.NET exported as PNG's and TGA's.
Any help is appreciated!
Edit: I just discovered that it only happens if android or blackberry is choosed as the target platform.
Importing a sprite with any transparency causes it to use a transparent render
The transparent render is showing areas of your sprite with an Alpha less then 1.0 but more then 0.0 as translucent. You need to fix your sprite.
I promise you thats what it is and if you don't see it in your paint package its because your paint package is hiding it, perhaps by having a black background.
What Jeff said and have you applied a colour to the sprite that has a reduced alpha?
I can guarantee that the the non transparent areas of the sprites realy is non transparent. The softwares I was using does have a black and white grid pattern as background just like in the unity sprite editor and the colors has full alpha.
If I just use a completely non transparent color on a whole sprite it will as expected be non transparent in unity, but if I have any transparency on any pixel the whole sprite will look slightly transparent in unity.
Answer by Henrik.Lg · Jun 28, 2014 at 08:35 PM
Changing texture/sprite compression to Truecolor as Apinaheebo suggested worked! Thanks a lot!