- Home /
Cannot change Lens Flare Ignore Layers list
When ever I try to modify the list I get this:
Using a SerializedProperty after the object has been deleted is not possible. UnityEditor.EditorGUI:SetLayerMaskValueDelegate(Object, String[], Int32)
Now this is just me adding a new game object directional light and adding a lens flare component. It is sitting in the root of the hierarchy with no scripts attached to it.
If I add one with the defaults, it works but as soon as I try to modify it BOOM...
This happens in any project with lens flares. If I try to modify the ignore layers list the exception is thrown. This seems like something is broken with the class data for Lens Flare.
Confirmed this happens with my laptop and on a friends computer.
Answer by sh0v0r · Mar 01, 2011 at 01:05 AM
This appears to be fixed in the latest version of Unity.
Your answer
![](https://koobas.hobune.stream/wayback/20220613093551im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Lens Flare disappears when far from camera 4 Answers
Dirty Lens effect like BF3 2 Answers
Lens flare not showing up 4 Answers
When are Lens Flares rendered? 1 Answer