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
- Existing assets' references are lost when pasting in copied sub-assets
- Dragging and dropping a system that contains event context to create nested VFX crashes the editor
- TextMeshPro UV2 custom data not rendering for off-screen text with RectMask2D in Unity 6
- Text overlap and is unreadable in Inspector > Terrain Paint Texture after creating new Terrain Layer
- Event "XRInputSubsystem.trackingOriginUpdated" triggers twice when recentering the view
Add comment