Search Issue Tracker

Active

Under Consideration for 6000.4.X, 6000.5.X, 6000.6.X

Votes

0

Found in

6000.0.73f1

6000.3.14f1

6000.4.5f1

6000.5.0b6

6000.6.0a4

Issue ID

UUM-140526

Regression

No

Deleting 2D Lights while Lighting Explorer is open throws “GUI Error” and “NullReferenceException” errors in the Console window

Lighting

-

Steps to reproduce:
1. Create Unity project using Universal 2D Template
2. In Hierarchy create few different 2D Lights (e.g Sprite Light 2D, Spot Light 2D)
3. Open Light Explorer window (Window > Rendering > Lighting Explorer) and dock it new to Game tab
4. Select Sprite and Spot Lights 2D in Hierarchy
5. Delete the selected Lights
6. Observe the Console window

Actual results: “GUI Error” and “NullReferenceException” errors thrown in the Console when deleting 2D Light with Lighting Explorer open
Expected results: No errors are thrown in the Console when deleting 2D Light with Lighting Explorer open

Reproducible with versions: 6000.0.73f1, 6000.3.14f1, 6000.4.5f1, 6000.5.0b6, 6000.6.0a4

Tested on (OS): macOS Silicon Tahoe 26.4.1, Ubuntu 24.04

{code:java}
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.DefaultLightingExplorerExtension+<>c.<Get2DLightColumns>b__8_8 (UnityEngine.Rect r, UnityEditor.SerializedProperty prop, UnityEditor.SerializedProperty[] dep) (at /Users/bokken/build/output/unity/unity/Editor/Mono/SceneModeWindows/DefaultLightingExplorerExtension.cs:272)
UnityEditor.SerializedPropertyTreeView.CellGUI (UnityEngine.Rect cellRect, UnityEditor.SerializedPropertyTreeView+SerializedPropertyItem item, System.Int32 columnIndex, UnityEditor.IMGUI.Controls.TreeView`1+RowGUIArgs[UnityEngine.EntityId]& args) (at /Users/bokken/build/output/unity/unity/Editor/Mono/SerializedProperty/SerializedPropertyTreeView.cs:556)
{code}

{code:java}
GUI Error: Invalid GUILayout state in LightingExplorerWindow view. Verify that all layout Begin/End calls match
UnityEditor.GUIView:ProcessEvent (UnityEngine.EntityId,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUIView.cs:70)
{code}

Add comment

Log in to post comment