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. Dismiss Notice

Lens Flare "Ignore Layers" not working

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

  1. ev3d

    ev3d

    Joined:
    Apr 19, 2013
    Posts:
    327
    I created a demo project (https://www.dropbox.com/s/u8v8391jzgz0kou/Flare Bug.zip). In this demo what i think SHOULD be happening is this:

    1) We have a lens flare
    2) We have a socket that the light is in (a socket shaped mesh with a mesh colider on a layer called "LightSocket")
    3) We want the socket to act like a real socket where it blocks the light from the side and back but not the front. (flare)
    4) But we want ONLY the socket to effect the flare and nothing else. (

    So we have the lens flare set to ignore all layers BUT the "Light Socket" Layer. But it doesn't work. It either shines through the socket, or does not show at all (depending n HOW you selected the layers in the mask).

    the "ignore layers" thing seems really buggy..
     
  2. ev3d

    ev3d

    Joined:
    Apr 19, 2013
    Posts:
    327
  3. ev3d

    ev3d

    Joined:
    Apr 19, 2013
    Posts:
    327
    anyone? I can't get lens flares to work properly..
     
  4. ev3d

    ev3d

    Joined:
    Apr 19, 2013
    Posts:
    327
    bump
     
  5. ev3d

    ev3d

    Joined:
    Apr 19, 2013
    Posts:
    327
    any ideas? work arounds?
     
  6. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    It seems to be the problem that you should not ignore the layer the flare is on.

    Todo:
    1: Create layer "Light Socket"
    2. Add the Light Socket object to the "Light Socket" layer
    3. Add the lens flares to the "Light Socket" layer
    4. Set lens flares ignore layers to everything exept the "Light Socket" layer
     
    bogyeombae and TTimur like this.
  7. bogyeombae

    bogyeombae

    Joined:
    Nov 21, 2022
    Posts:
    1
    thanks you!!! T_T.,......