Using transparent images in Unity
I am trying to make a prefab that is basically a image. To do this, i have made a cube and put on it an image i have. But i have a problem =/
My image have transparent background, but in Unity, it simply doesn't have. When i put the image on the desktop OR open it on any image editor, it appears as it were to be, transparent. But when i import it to Unity, it's background automatically change to black, and the transparency doesn't exists anymore. I have put a transparency shader, but it still doesn't show the transparency, but instead, a black background.
This is really annoying me, and i am almost finishing a game. I don't have much time left to finish this, otherwise i will mess up with all my work, and this is the ONLY problem i have. Can someone help me? Like, NOW?
Is it a jpeg? Those only have a fake transparency trick, so aren't really transparent as far as Unity (any game engine) is concerned.
Answer by SeanPavlichek · Feb 20, 2017 at 03:53 PM
Change your material rendering mode to cutout, fade, or transparent and it will work.
At the end of the OPs second paragraph, they mention using a transparent shader. Shader? What?
Above the Rendering $$anonymous$$ode dropdown, it says "StandardShader." If you click that drop-down, it has options for more, some of which are transparent (or cut-out, etc... .) Those are real shaders.
StandardShader is more like a Unity-provided wizard, that picks/builds the appropriate shader from the rest of the list, based on your settings.
(Then, to be sure, the Q is 6 months old and marked time-sensitive, so they've probably solved it by now.)
Your answer
Follow this Question
Related Questions
Problem with transparency of an object 0 Answers
Need help with an image path script 0 Answers
How to make a transparent texture that filters out certain objects? 0 Answers
Why Won't My Sprite Go Transparent? 2 Answers
Native Toolkits and Texture 0 Answers