Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Lens Flare "Ignore Layers" mask from Code?

Discussion in 'Editor & General Support' started by ev3d, May 13, 2014.

  1. ev3d

    ev3d

    Joined:
    Apr 19, 2013
    Posts:
    327
    Is there a way to adjust the "ignore layers" mask of a Lens Flare Component from code? And if not, why?
     
  2. Loius

    Loius

    Joined:
    Aug 16, 2012
    Posts:
    546
    Not according to othe scripting reference. I can't imagine a situation where that would be necessary.

    If you really, really have to change what layers a flare is affecting, create multiple flare assets and swap between them at runtime.
     
  3. VIC20

    VIC20

    Joined:
    Jan 19, 2008
    Posts:
    2,689
    "I think there is a world market for maybe five computers." Thomas Watson, president of IBM