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
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
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.