Search Issue Tracker
By Design
Votes
0
Found in [Package]
11.0.0
Issue ID
1311215
Regression
No
[HDRP] Light intensity gets reset to its initial value when you set it before Update method is called
How to reproduce:
1. Open the user's attached "LightIntensityBug" project
2. Open the "Main" Scene (found in the Assets/Scenes folder)
3. Enter the Play Mode
Expected results: In the console "Update: 10" is printed
Actual results: In the console "Update: 47.74648" is printed
Reproducible with: 4.10.0-preview (2018.4.31f1), 7.5.3 (2019.4.19f1), 10.3.1 (2020.2.3f1), 11.0.0 (2021.1.0b5, 2021.2.0a3)
Notes:
- The issue is not reproducible in Built-in RP and Universal RP
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
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Resolution Note:
This is the expected result with the Light Component API.
In HDRP, you need to use the HDAdditionalLightData API instead of the API in the Light component:https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@10.3/api/UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.html#UnityEngine_Rendering_HighDefinition_HDAdditionalLightData_intensity
I know this may look like a workaround for now but we're working on a proper solution that will be soon available.