Lens Flare (SRP) clipping plane problem in Unity 2022.3.10f1

I’m using Unity 2022.3.10f1 and I encountered two issues when using the SRP Lens Flare.

The first issue is that when I click on the lens flare asset, I receive an error and can’t visualize or configure it. Here’s the error:

The other issue is that I’ve set up my scene with the camera’s Clipping Plane Far at 500, and when my object moves toward the sun and goes beyond 500 units, the lens flare disappears. It only reappears if I move backward or set the Far value to a number greater than 500.

Can someone please help me?

+1. Also have the lens flare issue. Using 2022.3.7f1.

ArgumentException: Incorrect number of arguments supplied for call to method ‘UnityEditor.GenericMenu FillPropertyContextMenu(UnityEditor.SerializedProperty, UnityEditor.SerializedProperty, UnityEditor.GenericMenu, UnityEngine.UIElements.VisualElement)’
Parameter name: method
System.Dynamic.Utils.ExpressionUtils.ValidateArgumentCount (System.Reflection.MethodBase method, System.Linq.Expressions.ExpressionType nodeKind, System.Int32 count, System.Reflection.ParameterInfo[ ] pis) (at :0)
System.Linq.Expressions.Expression.ValidateArgumentCount (System.Reflection.MethodBase method, System.Linq.Expressions.ExpressionType nodeKind, System.Int32 count, System.Reflection.ParameterInfo[ ] pis) (at :0)
System.Linq.Expressions.Expression.Call (System.Linq.Expressions.Expression instance, System.Reflection.MethodInfo method, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2) (at :0)
UnityEditor.Rendering.LensFlareDataSRPEditor…cctor () (at ./Library/PackageCache/com.unity.render-pipelines.core@14.0.8/Editor/PostProcessing/LensFlareDataSRPEditor.cs:114)
Rethrow as TypeInitializationException: The type initializer for ‘UnityEditor.Rendering.LensFlareDataSRPEditor’ threw an exception.
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass72_0.b__0 () (at <97436df440ca462884c5332c1d8ebbe7>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Hello. Did anyone ever find a solution to the Clipping plane part of the issue ? Or a workaround other than increasing the far clip plane value on the camera ? I have the same problem, upgraded to Unity 6000.0.41f1 and URP 17.0.3 and it’s still there

When the camera moves past a certain point, the SRP lens flare that I attached to a directional light disappears. Moving the light itself doesn’t help, the only workaround currently is to increase the far clip plane on the camera. All I could find about the issue on google is this post and one reddit post, both with no solution