Why do trigger colliders hide light flares ?

Hello,

I noticed that in my current Unity project, the flares of some point lights where no longer visible - most of the time. They reappeared when I deactivated some trigger colliders I had added for level design reasons.
So I made a simple test: A scene with only a camera, two point lights with flares and one trigger collider:

As you can see, the light covered by the trigger collider has no flare, the other one has one.
Hence, trigger colliders hide light flares.

The question is, is this a bug or a feature ?

Personally I am used to put trigger colliders where the player is moving around, not hidden in some obstacles! So it appears logical to me that a trigger collider should only do what it’s name says: Trigger stuff - not hide flares or anything else. So I consider it a bug. (But perhaps there is some hidden logic behind this…?)

It’s not a bug; colliders block raycasts. So put it on the TransparentFX layer.

–Eric

it is both :wink:
Light Flare will go through TransparentFX layer only. But in 3.0 you can have all layers you want :wink:

also, if a collider is trigger or not has no impact on it colliding, it only impacts the collision response (solid vs pass through)

Oh, yes, putting it on the TransparentFX layer works. Didn’t know that. Thanks !