Search Issue Tracker
Not Reproducible
Votes
0
Found in
2018.2.0a1
Issue ID
995308
Regression
No
[UI] Lighting window's UI is corrupted and NullReferenceException is shown after removing lightmap texture
Steps to repro:
1. Open attached project and 't1' scene;
2. Open Lighting window (Window>Lighting>Settings);
3. Open 'Global Maps' tab in the Lighting window;
4. In the Project folder got to Assets>t1 folder;
5. Delete 'Lightmap-0_comp_light.exr' lightmap from the Project folder.
Expected result:
The lightmap texture is removed without errors in the Console.
Actual result:
- Lighting window UI is corrupted;
- NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorGUI.DrawPreviewTextureInternal (Rect position, UnityEngine.Texture image, UnityEngine.Material mat, ScaleMode scaleMode, Single imageAspect, Single mipLevel) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:5314)
UnityEditor.EditorGUI.DrawPreviewTexture (Rect position, UnityEngine.Texture image, UnityEngine.Material mat, ScaleMode scaleMode, Single imageAspect) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:6025)
is shown.
See attached video.
Notes:
- Reproducible in 2018.2.0a1, 2018.1.0b5, 2017.3.0p2, 2017.2.1p3;
- Reproducible on Windows 10 and OSX 10.13.2;
- The issue happens only when Lighting window's Global tab is active and is not happening for other Editor preview windows.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Add comment