Search Issue Tracker
Active
Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X, 6000.1.X, 6000.2.X
Votes
0
Found in
2021.3.50f1
2022.3.60f1
6000.0.44f1
6000.1.0b11
6000.2.0a7
Issue ID
UUM-100779
Regression
No
Realtime Hard Shadows resolution of Spot Light and Point Light cannot be changed by script when using Universal Render Pipeline (URP)
How to reproduce:
1. Open the attached “IN-89545“ project
2. Open the “SampleScene”
3. In the Hierarchy tab, select the “Point Light” GameObject
4. In the Inspector, note the value of the "Light Shadow Resolution" field of the ShadowResolutionChanger script
5. Enter Play mode
6. Note the shadow's contour quality
7. Press the space bar several times
8. Observe the appearance of the shadow's contour and the value of the "Light Shadow Resolution" field in the ShadowResolutionChanger script
Expected result: The quality of the shadow changes as the value of the "Light Shadow Resolution" field updates
Actual result: The shadow quality remains unchanged, despite the value of the "Light Shadow Resolution" field being updated
Reproducible in: 2021.3.50f1, 2022.1.0a1, 2022.3.60f1, 6000.0.44f1, 6000.1.0b11, 6000.2.0a7
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
- The script used to modify the shadow resolution does not directly change the Light > Shadows > Realtime Shadows > Resolution property, as this property is not exposed in the API of the Light class or any Light-related classes in URP. Instead, the script modifies the shadowResolution instance field of the Light, which, according to the development team, is updated by the URP Inspector when the Light > Shadows > Realtime Shadows > Resolution property is changed manually.
- Unlike HDAdditionalLightData in HDRP, URP’s UniversalAdditionalLightData does not provide any pipeline-specific methods for altering Hard Shadows quality programmatically.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- PlayerPrefs get corrupted when a minimized fullscreen Player is closed through the Taskbar
- "To Debug, run app with -diag-job-temp-memory-leak-validation cmd line argument. This will output the callstacks of the leaked allocations." warning is printed when JobTempMemoryLeakValidation switch is enabled
- Main Thread stalling when loading Audio Source asset asynchronously while preloading another Audio Source asset
- Material artifacts occur in the Material Preview window when baked lighting is applied to scenes
- “ArgumentOutOfRangeException” after saving, reseting and re-add Default Tile Palette Tools to the list in Preferences window
Add comment