Does anyone know what format my image must be in for it to show up as Alpha in Unity?
I currently have a tree with leaves and I want the area with no leaves to show up Alpha/Clear. I have tried .targa and .png file formats with the background transparent. I even tried the Unity manual’s suggestion by using the Photoshop plugin…the problem is, the tutorial is not very detailed and leaves a lot to the imagination.
Any ideas? All help and information is greatly appreciated! Thank you!
Right click on the file in Unity and go to “import options”. Make sure you’ve set a format that includes the alpha channel. Then make sure you’re using a Unity shader that supports the alpha channel. I use .PNG and .PSD files all the time, it works fine.
Did you check the alpha channel in Unity? (There’s a check box in the inspector.) Does the leaf’s alpha show properly? Did you try applying the shader to a simple test object? Did it display properly?
I’m guessing you’ve missed something simple, so the best thing to do is to test things step by step to eliminate the obvious possibilities.
When you assign the texture to begin with, add the same UV to the transparency channel @ 100% before exporting.
In Unity try the particle shaders or import the Terrain Demo Assets/ Trees Ambient Occlusion package ( which you just made) and set your trees to ambient occlusion.