Transparency on Textures

Hi,
I have a plane with a texture on it which I would like to use as a mouse pointer.

However, the transparency which is applied to the PNG file doesn’t appear correctly in Unity, I only get the purple colour background instead of transparent (colour 0 zero is set to purple).

How do I get texture to apply to the plane as a transparent?

thanks for your help.

85404--3306--$hand_with_no_transparency_114.png

did you apply a transparency shader to that material.

thanks, that worked.

However the texture has a purple glow around the hand, see the preview shows there is no anti-aliasing in the original against the purple colour, its solid purple against white (created in a pixel editor).

Is there anyway round this before I change the original transparency colour to white?

thanks for your help

Documentation to the rescue!

rmlloyd says that “colour 0 zero is set to purple”. This could indicate a pallette based PNG without a separate alpha channel and with one color in the pallette set as transparent. I don’t think the page in the docs you referred to covers that.

I could have misunderstood something though.

Rune

Yep, I was just pointing out a “proper” way to do it. If you want clean alpha transparency without bleed using PNGs is not the way to go. Take the time to make a real alpha channel.

It is an indexed png that I am using. Looks like I need to start using alpha channels instead. Thanks a lot for the link to the doc page.

You shouldn’t need to convert the image to png if you are using photoshop. After ensuring the image has a proper alpha channel as per the tutorial linked to above, just save the psd file directly in the project folder, as Unity takes care of importing the image for you. (The automated asset import pipeline is one of Unity’s main selling points in my opinion.)

thanks. Unfortunately I do not have photoshop, only Fireworks and pro-motion on Vista. I am sure I will be able to achieve the same alpha channel result with these.

Thanks everyone for your help on this.