How to reproduce:
1. Open the attached “Light2D-OverlapOperationBug.zip” project
2. Make sure Render Graph Compatibility Mode is disabled (Project Settings > Graphics > Render Graph)
3. Open the “SampleScene”
4. Observe the Scene View
5. Disable the “orcSprite” GameObject
6. Observe the result
Expected result: Light overlap does not change when shadows are no longer being produced
Actual result: Light overlap order is different when shadows are being produced
Reproducible in: 2023.3.0a18, 6000.0.21f1
Not reproducible in 2021.3.44f1, 2022.3.48f1, 2023.3.0a17
Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environments tested
Notes:
- Moving the “orcSprite” GameObject out of the view and disabling the shadow component of the “SportLight2(green)_Shadows” GameObject can also be done instead of step 4 to reproduce the issue.
- Issue does not reproduce with Render Graph Compatibility Mode enabled