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
- [macOS] Project fails to load when Virtual Artifacts are Corrupted
- Long scheduler times on main thread when using InstantiateAsync with a singular massive Prefab
- The project hangs upon opening it when importing the "discrete_rank2_vector_v2_0.onnx" file
- Opening the Look Dev hangs the Editor when the window is opened for the first time in the project or after deleting the Library folder
- Look Dev has blurry icons on 4k monitors
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.