Halo Drawing In Front of Everything
In Unity 5.3.5f1 (64-bit) I would have my directional lights have draw halo checked, as this gave a desired glow effect to my sun & moon objects. Since I've updated to Unity 5.5.0f3 (64-bit) I see the halo has some undesired effects.
Looking into it I noticed the lights z position now matters. So when my sun/moon object rises and sets, you can see the halo over lapping objects that are in front of itself. See below example
It seems like the halo wants to draw in front of everything and anything. Is this a bug or is there a way to prevent this behavior?
Seems to be an on going bug that hasn't been addressed link text
Closing in on 2 month now. No response from Unity. Anyone found a decent work around?
Answer by Rickywild · Feb 04, 2017 at 01:44 PM
So far I've worked around this by enabling and disabling the halo when the sun/moon obj is high enough,so that the halo doesn't overlap objects that are in front.
private void SetHalo(bool turnOn)
{
Component halo = _haloObj.GetComponent("Halo");
if(turnOn)
{
halo.GetType().GetProperty("enabled").SetValue(halo, true, null);
}
else
{
halo.GetType().GetProperty("enabled").SetValue(halo, false, null);
}
}
It's not ideal, nobody here really know nothing about keeping the halo from drawing on top of objects in front of itself?
Reverting back to Unity 5.3.5f1 (64-bit) fixes the bug
EDIT
Has anybody tried & tested this? Or has anyone else run into this problem? It's been over a month now and really don't want to revert back to older build of Unity