Search Issue Tracker
Fixed in 7.3.0
Fixed in 7.2.2, 7.3.0, 8.1.0
Votes
1
Found in [Package]
8.0.1, 7.2.0, 7.1.8, 7.1.5, 7.1.1
Issue ID
1219374
Regression
Yes
[URP] NullReferenceException threw on adding the "Light 2D (Experimental)" component when 2d render data not assigned.
Adding the "Light 2D (Experimental)" component causes the editor to throw NullReferenceException continuously when 2D render data not assigned to URP Pipeline, refer attached video.
Steps to repro:
1. Create a new project
2. Windows > Package Manager >Universal RP > Install
3. Create a URP Pipeline.
4. Edit > Project Setting >Graphics > Scriptable Render Pipeline Setting > URP Pipeline >Select
5. Hierarchy > Create Empty GameObject
6. Add "Light 2D (Experimental)" component in the Inspector
Actual Result:
NullReferenceException is thrown on adding the "Light 2D (Experimental)" component when 2d render data not assigned
Expected Result:
No Error in Console and "2D render data Not assigned " message shows.
Tested with Unity versions:
2020.2.0a2, 2020.1.0b1, 2019.3.3f1, 2019.3.0b4
Package found version: 8.0.1, 7.2.0, 7.1.8, 7.1.5, 7.1.1
Package working fine version: 7.0.1
Environment:
Windows 10 & macOS 10.14
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Experimental.Rendering.Universal.Light2DEditorUtility.GetRenderer2DData () (at Library/PackageCache/com.unity.render-pipelines.universal@7.2.0/Editor/2D/Light2DEditorUtility.cs:103)
UnityEditor.Experimental.Rendering.Universal.Light2DEditor.OnEnable () (at Library/PackageCache/com.unity.render-pipelines.universal@7.2.0/Editor/2D/Light2DEditor.cs:201)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Rendering Debugger" displays incorrect overdraw count when using "Unlit/Texture" shader
- Scene and Game views break when the Editor window is snapped with the Microsoft PowerToys
- Materials do not transfer texture when the "Shader" parameter is changed from "Unlit/Texture" to "Universal Render Pipeline/Unlit"
- [Linux][Vulkan] Crash when opening searchable dialog
- The "Shader error in 'AE/Leaves': "Undefined punctual shadow filter algorithm"" error appears when build completes on a specific project
Add comment