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
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}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "IndexOutOfRangeException" and "NullReferenceException" are thrown and Element disappears from UI Builder when undoing rename of element in "Open Instance in Context" menu
- Nothing happens when entering a converter ID to target property in the Add Binding window when a converter ID was already added and removed
- Select Scriptable Object window freezes and becomes unresponsive when currently opened UXML Template is selected for binding's Data Source
- [Linux] “ReleaseButton expects buttonId >= 0” error is thrown when importing Assets via drag and drop
- Asset gets unselected and added Subgraphs list item is not undone when performing Undo in Heatmap with Default Values asset Inspector
Add comment