Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    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,682
    "I think there is a world market for maybe five computers." Thomas Watson, president of IBM