Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
5.6.1.
Issue ID
1132619
Regression
Yes
[HDRP] Area Lights are serialized incorrectly when using HD Render Pipeline
Addition: Tube and Rectangle are types are also serialized as Point type
Area Light type: Disc also is not serialized correctly (reproduce in 2018.3.0a1) (not HDRP related)
To reproduce:
1. Open any project and import script attached "PrintLightType.cs"
2. Add HD Render Pipeline Package from Package Manager
3. In Hierarchy window, add area light: Right-click > Light > Area Light
3. In main toolbar, go to Support > Print scene lights type
Result: light.type and isAreaLight returns incorrect type
Reproduced in: 2018.3.7f1, 2019.1.0b6, 2019.2.0a7
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
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
Resolution Note:
This cannot be fixed.
In order to support realtime area light, we must use Point type in Light component in order to not have our area light being culled at runtime.
In HDAdditionnalLightData, there is a secondary type LightTypeExtent to determine which kind of "Point" light it is (Punctual, RectangleArea or TubeArea).