Search Unity

texture transparency?

Discussion in 'Immediate Mode GUI (IMGUI)' started by phil.cooper@mtcl.net, May 6, 2010.

  1. phil.cooper@mtcl.net

    phil.cooper@mtcl.net

    Joined:
    Nov 10, 2009
    Posts:
    265
    is there a way of changing the transparency of a texture?

    i have brought a texture into unity as a .png with the transparency set in photoshop, however in unity the transparency doesnt show.
     
  2. Sycle

    Sycle

    Joined:
    Nov 24, 2009
    Posts:
    446
    Have you verified the transparency imported correctly?

    In Unity you should be able to select the texture and click the small red green blue box to toggle the alpha channel to check that it is there, and isn't completely white.
     
  3. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    Also, I'd recommend importing the Photoshop file directly into Unity rather than exporting to PNG first.
     
  4. platonia96

    platonia96

    Joined:
    Mar 10, 2010
    Posts:
    225
    You can also change the materials shader to Transparent > Cutout
     
  5. aeronmike

    aeronmike

    Joined:
    Aug 20, 2012
    Posts:
    3
    That worked fine!
    Thanks.
     
  6. Kaj Sonander

    Kaj Sonander

    Joined:
    May 5, 2016
    Posts:
    1
    Seems a little counterintuitive to the traditional photoshop work flow. Why would that work? Wouldn't it be a bigger file and just slow down the game?
     
    Ganishka likes this.
  7. Magnumstar

    Magnumstar

    Joined:
    Oct 3, 2015
    Posts:
    304
    You guys rock
     
  8. tTwist

    tTwist

    Joined:
    Jul 11, 2013
    Posts:
    1
    upload_2016-9-15_19-1-32.png
    Thanks guys! found it!
     

    Attached Files:

    g21st likes this.
  9. unity_621ypsd1sHv_Jw

    unity_621ypsd1sHv_Jw

    Joined:
    Sep 12, 2021
    Posts:
    1
    If you import a texture there is the option Alpha is Transperancy. Make sure you set it to true. screenshot.png