Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    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