Steps to reproduce:
- Create a new 2D URP project
- In the Hierarchy, create an Empty GameObject
- In the Inspector, add "Lens Flare (SRP)" Component
- Observe the Console and Game view
Actual results: Scene view is gray and "Render Graph Execution error" and "ArgumentException: Trying to access resource of type Texture with an null resource index." errors are constantly spammed
Expected results: No errors are be thrown, if the Component is not supported on 2D it should clarify that instead of throwing Exceptions
Reproducible with versions: 6000.0.0b11, 6000.0.75f1, 6000.3.15f1, 6000.4.7f1, 6000.5.0b7, 6000.6.0a4
Tested on (OS): Windows 11
Notes:
- Does not reproduce in earlier versions with Render Graph disabled
- Does not reproduce on macOS 26.4
- Does not reproduce on 3D URP