problem importing model with texture from maya

hi, i have a simple tree with leafs that i created in maya, but when i import the model into unity, the leaf texture dont show.

The leafs are just a targa file with alpha, attached to a plane in maya.

So the only thing showing in unity are the grey planes with no texture.
Fact is, im kind of new when it comes to texturing, but i thought that when it comes to planes and basic shapes, that i didnt have to do anything specific with them in order to have the texture work??

Does anyone have any experience with this and able to help me? Cause i cant seem to find an answer. I tried to drag the texture onto the model too, but the alpha dont work that way.

Probably what is happening to you is that you need to change the shader on the leaves to one of the shaders that uses your alpha channel. Vegetation two pass unlit or something like that. Then it should fix your problem assuming the texture is in the right format for alpha channel support, and was UV’d to your plane properly.

PNG is great for textures with transparency.

Hope that helps.

hey, thanks a lot, i got it working with that shader. But im wondering, cause in unity there is a strange white line
around the leaf shapes when i get the transparency and everything to work. Do you know how i can fix this?

No problem glad I could help. It could be an alpha halo, try moving the slider that says alpha cutoff or something. Some other problems could be if you use a dds texture make sure you check the setting for DXT1- interloped alpha or whatever so it saved transparency. Also if its a dds image make sure it is either 64x64, 256x256, 512x512 etc. Check this if all else fails, http://cgtextures.com/ go to the tutorials and check the alpha mask background trick tutorial it may help you. Anyways one of those should fix it.