Search Issue Tracker

Fixed in 7.1.5

Votes

0

Found in [Package]

7.1.1

Issue ID

1184490

Regression

Yes

[Improved Prefab] NullReference Exception is thrown on applying all changes made to GlobalLight2D

Package: Scriptable Render Pipeline Lightweight

-

NullReference Exception is thrown on applying all changes made to GlobalLight2D

Steps to Reproduce:
1. Open attached project
2. Install Window > Package Manager > Lightweight RP
3. Project > Assets > right-click > Rendering > Lightweight Render Pipeline > Pipeline Asset
4. Project > Assets > right-click > Rendering > 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. Change value of Global Light 2D > Inspector > Light 2D > Light Order to 5
8. Click on Hierarchy > GlobalLight2D > Inspector > Prefab > Overrides > Apply All

Expected result: Changes applied to the prefab

Actual result: NullReference Exception is thrown on applying all changes made to GlobalLight2D

Reproducible on: 2019.3.0b4, 2019.3.0b3, 2019.0a5

Working fine on: 2019.2.1f1

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.