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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
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