The question is answered, right answer was accepted
Why Won't My Sprite Go Transparent?
Hello all,
I am following this tutorial on YouTube to make a starting countdown timer for my game: https://www.youtube.com/watch?v=ZEP3lxsA-FY My problem is that my sprites will not go transparent for anything (they are surrounded by white when I put them into the Canvas < Image). I made my numbers on Microsoft paint, exported them as a PNG, went to GIMP and gave them an alpha layer, then made them a Sprite in the Unity Inspector once I imported them into my project. I looked at countless links on Google for tips and none of them helped. If you need pictures or want to see the websites I looked at for help, just let me know. Thank you :)
Another thing to check, since a lot of people can forget this, make sure your imagine is a .png file, not .jpg as they won't turn transparent, even when transparent in the image editing program of choice.
Answer by TBruce · May 30, 2016 at 06:10 PM
When you look at the image in Gimp does the background look all white or checkered like ths
This is the way a transparent image should look in your image editor. If it does look like this then next you need to make sure that you set your sprite up correctly in Unity like this
Of course you can play around with "Pixels per Unit" and "Max Size"
@$$anonymous$$avina I took a screenshot on GI$$anonymous$$P, look above. :) And no the image is not checkered unless I delete a piece and the alpha layer is exposed.. I think you just gave me some light though!!
Gimp has a tool called "Fuzzy Select" as seen in red in this link. You select the tool, click on a whitespace area and press delete and all that whitespace will now be alpha.
Yup! You were right all the way! I tried everything you suggested and It worked perfectly. Thank you for your help. I will mark your answer as defiantly correct :) @$$anonymous$$arvina
Answer by vittu1994 · May 30, 2016 at 06:07 PM
As long as you set it as an sprite then Unity cant do much more. Have you checked if the original image file have transparent background? Or is it white there aswell, or is that as soon as the image gets placed in Unity it becomes un-transparent?
Follow this Question
Related Questions
(using shader blending to) remove white background from an image at runtime 3 Answers
Something wrong with the cut out feature of the standard shader? 0 Answers
How to create a mesh for 2D maps with transparent parts, which is generated by software? 0 Answers
Why transparent rendering mode makes opaque object transparent? 1 Answer