Search Issue Tracker
Fixed in 9.0.0
Votes
0
Found in [Package]
7.2.1, 7.2.0
Issue ID
1220931
Regression
Yes
[HDRP] NullReferenceException error is thrown on resetting "HD Additional Light Data" component
NullReferenceException error is thrown on resetting "HD Additional Light Data" component.
Steps to repro:
1. Open the attached project.
2. Select Directional Light.
3. Reset "HD Additional Light Data" component.
Actual Result:
NullReferenceException error is thrown in the console.
Expected Result:
No error in the console.
Reproducible in:
2020.1.0a24.3133(0efcce64deba), 2019.3.2f1, 2019.2.0f1, 2019.1.14f1, 2019.1.0b2.
Working fine in:
2019.1.0b1 with Package Version 5.2.3-preview.
Environment:
Occurring on Windows 10 & Mac 10.15.
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Component.TryGetComponent[T] (T& component) (at <881f56cb7996431bbecda1740f3e7a98>:0)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.get_legacyLight () (at Library/PackageCache/com.unity.render-pipelines.high-definition@7.2.1/Runtime/Lighting/Light/HDAdditionalLightData.cs:1443)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.get_type () (at Library/PackageCache/com.unity.render-pipelines.high-definition@7.2.1/Runtime/Lighting/Light/HDAdditionalLightData.Types.cs:232)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.UpdateBounds () (at Library/PackageCache/com.unity.render-pipelines.high-definition@7.2.1/Runtime/Lighting/Light/HDAdditionalLightData.cs:2421)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize () (at Library/PackageCache/com.unity.render-pipelines.high-definition@7.2.1/Runtime/Lighting/Light/HDAdditionalLightData.Migration.cs:159)
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
- Inspector's custom tooltip is displayed incorrectly when the name is truncated in UI toolkit
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
Resolution Note (fix version 9.0.0):
Verified during a pair-up call. All good ✔
Fixed in https://github.com/Unity-Technologies/ScriptableRenderPipeline/pull/6453