Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
This question was closed May 30, 2016 at 06:50 PM by stephen_george98 for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by stephen_george98 · May 30, 2016 at 05:41 PM · uitexturespritetransparencyalpha-channel

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 :)

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CraftyMaelyss · Apr 11, 2020 at 08:59 AM 0
Share

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.

2 Replies

  • Sort: 
avatar image
1
Best Answer

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

alt text 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

alt text Of course you can play around with "Pixels per Unit" and "Max Size"


transpimg.png (32.4 kB)
inspector.png (14.9 kB)
Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image stephen_george98 · May 30, 2016 at 06:13 PM 0
Share

@$$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!!

avatar image TBruce stephen_george98 · May 30, 2016 at 06:34 PM 1
Share

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.

avatar image stephen_george98 TBruce · May 30, 2016 at 06:50 PM 0
Share

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

Show more comments
avatar image
0

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?

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image stephen_george98 · May 30, 2016 at 06:09 PM 0
Share

@vittu1994 alt text

yep! I just took this screenshot in GI$$anonymous$$P

gimp-transparency.png (100.8 kB)

Follow this Question

Answers Answers and Comments

95 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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

Sprites getting wierd pixels at the sides 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges