EDIT: Hoping to bump this up as this is a real annoying bug. Tried it on another PC and still buggy. The Lens Flares just behave how they want. If I add a 2nd Lensflare to the scene and hide the old one, sometimes I get one to appear by disabling/enabling them or updating them otherwise.
Still they will only appear in either scene OR game view OR while running… as this is kind of urgent I hope to get some help from here. Hopefully I am not overseeing some trivial thing ;(
Hey, so this might be a bug, anyway I hope someone can help me out because this is bugging me the whole time.
Lens flare (also Halos) in general are not showing, neither in the inspector nor while running.
The Idea is to create a sun with a lens flare.
I did a very basic setup by creating a new project - importing everything and setting up a scene like this:
- Added a skybox texture to the Main Camera via Edit->RenderSettings (Flare layer is checked)
- Created a standard sphere
- Attached a lens flare component to the sphere
- Choosed a lens flare (50mm Zoom)
The funny part now happns while I run the scene:
On the lens flare component, whenever I check the “Directional” box and uncheck it again
the lens flare appears but vanishes again (shrinking until it disappears) in the same second.
After this If I stop it and check/uncheck the directional box in the game-view the lens flare magically appears! (But is still missing in the scene-view. FX effects are on)
But any changes on the lens flare makes it disappear again and the only solution is to check/uncheck the directional box again.
Also this method did not always work. Now all the lens flares are gone forever and won’t show up even with the check/uncheck method.
Creating a new scene like mentioned above not only reproduces this but I also get the following error messages over and over.
EDIT: They appeared after attaching the lens flare (Step 3):
!IsNormalized (dir)
UnityEditor.DockArea:OnGUI()
!IsNormalized (ray.GetDirection ())
UnityEditor.DockArea:OnGUI()
Scene::raycastAnyShape: The maximum distance must be greater than zero!
UnityEditor.DockArea:OnGUI()
I am using Windows Vista 64-bit with Unity free v 3.1.0f3 (54715)
Looking forward to hear from you ![]()
Greetz, LOG3