Search Unity

Alpha is Transparent

Discussion in 'Scripting' started by ghoulfool, Apr 23, 2014.

  1. ghoulfool

    ghoulfool

    Joined:
    Jan 14, 2014
    Posts:
    16
    Is there a way to set a projects' import settings so that for all imported PNG files the "Alpha is transparent" is ticked? Or, failing that, can this be done by writing an Editor script? It can be done by hand for the time being, but it will need to be automated at some point. Cheers.
     
  2. Gibbonator

    Gibbonator

    Joined:
    Jul 27, 2012
    Posts:
    204
  3. ghoulfool

    ghoulfool

    Joined:
    Jan 14, 2014
    Posts:
    16
    That's great! :D

    ... only the texture Importer docs seem to be missing the set alpha = true part.

    but with enough iterations of spelling "transparent" and "alpha" and a joining word we eventually arrive at

    alphaIsTransparency

    Smokey is The Bandit! Job done!
     
    Last edited: Apr 28, 2014