Search Issue Tracker

Fixed in 7.1.5

Votes

0

Found in [Package]

7.1.1

Issue ID

1184570

Regression

No

[LWRP] "NullReference Exception" is thrown on creating Animation of Light 2D

Package: Scriptable Render Pipeline Lightweight

-

NullReference Exception is thrown on creating Animation of Light 2D

Steps to Reproduce:
1. Create a new Project
2. Install Window > Package Manager > Lightweight RP
3. Project > Assets > right-click > Renderndering > Lightweight Render Pipeline > Pipeline Asset
4. Project > Assets > right-click > Renderndering > Lightweight Render Pipeline > 2D Renderer
5. Assign UniversalRenderPipelineAsset to Edit > Project Settings > Graphics > SRP Settings
6. Assign New 2D Renderer Data to Project > UniversalRenderPipelineAsset > Inspector > General > RendererList
7. Create Hierarchy > right-click > Light > 2D > Point Light 2D
8. Select Hierarchy > Point Light 2D
9. Create Window > Animation > Animation > Create

Expected Result: Animation should be created

Actual Result: NullReference Exception is thrown

Reproducible on: 2020.1.0a4, 2019.3.0b4, 2019.2.1f1, 2019.2.0b6

Environment: Windows 10 and Mac 10.14

Stack Trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Experimental.Rendering.Universal.HeaderModifier.HandleEvent (UnityEngine.UIElements.EventBase evt) (at Library/PackageCache/com.unity.render-pipelines.universal@7.1.1/Editor/2D/HeaderModifier.cs:20)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <d00f1b61b8b243648d8e1b7410a0ee0f>:0)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt) (at <d00f1b61b8b243648d8e1b7410a0ee0f>:0)
UnityEngine.UIElements.DefaultDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <d00f1b61b8b243648d8e1b7410a0ee0f>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <d00f1b61b8b243648d8e1b7410a0ee0f>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <d00f1b61b8b243648d8e1b7410a0ee0f>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <d00f1b61b8b243648d8e1b7410a0ee0f>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <d00f1b61b8b243648d8e1b7410a0ee0f>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <d00f1b61b8b243648d8e1b7410a0ee0f>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <d00f1b61b8b243648d8e1b7410a0ee0f>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <d00f1b61b8b243648d8e1b7410a0ee0f>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <d00f1b61b8b243648d8e1b7410a0ee0f>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <d00f1b61b8b243648d8e1b7410a0ee0f>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <d00f1b61b8b243648d8e1b7410a0ee0f>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <d00f1b61b8b243648d8e1b7410a0ee0f>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <d00f1b61b8b243648d8e1b7410a0ee0f>:0)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <d00f1b61b8b243648d8e1b7410a0ee0f>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <ede85b10691a411faa239e6306258393>:0)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.