Search Issue Tracker
Fixed
Fixed in 2023.1.X, 2023.1.0a6
Won't Fix in 2021.1.X
Votes
0
Found in
2021.1.4f1
2023.1.0a8
Issue ID
UUM-7711
Regression
No
[URP] RenderingData.lightData.visibleLights[] is not sorted when its count is lower than cullingParameters.maximumVisibleLights
How to reproduce:
1. Open the user's attached "VisibleLightsCountBug_URP_2021.2.zip" project
2. Open the "SampleScene" Scene
3. Move the Scene view camera a bit
4. Observe the Console log
Expected result: "PointSorted = True" is printed in the Console log
Actual result: "PointSorted = False" is printed in the Console log (Point Lights are not sorted by distance)
Reproducible with: 7.5.3 (2019.4.24f1) 10.5.0 (2020.3.7f1), 11.0.0 (2021.1.4f1), 12.0.0 (2021.2.0a15)
Note:
- The issue is not reproducible with Spot Lights
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
- [Windows] No minimum “Select” window size
- Enabling “Editor Extension Authoring” in UI Builder doesn’t dirty the document and saving with shortcut doesn’t persist the state
- WebRequest.Create() function fails with "URI prefix is not recognized" errors when the project is built for Linux Standalone or Windows Dedicated Server
Resolution Note (fix version 2023.1):
A correction was added to the documentation - to explain the behaviour that is seen in the project.
No behaviour was changed in this case.
See updated docs for ScriptableCullingParameters > maximumVisibleLights -
https://docs.unity3d.com/2023.1/Documentation/ScriptReference/Rendering.ScriptableCullingParameters-maximumVisibleLights.html
Resolution Note (2021.1.X):
Docs updated in 2023.1 - see resolution notes for more about the clarified behaviour.