Copyright © 2026 Unity Technologies
Fixed by unknown PR.
Fixed by unknown PR.
Fixed by unknown PR.
2022.1 has reached end of life so the issue will be fixed in a newer version.
How to reproduce:
1. Create a new Unity project
2. In a Scene view select the Draw Mode button
3. In opened submenu select Validate Albedo, Validate Metal Specular, or Show Lightmap Resolution
4. Observe the Console window
Expected result: Errors are thrown in the Console window
Actual result: No errors are thrown in the Console window
Reproducible with: 2022.1.13f1, 2022.1.16f1, 2023.1.0a5, 2023.1.0a10
Not reproducible with: 2020.3.39f1, 2021.3.9f1, 2022.1.12f1, 2022.2.0b7, 2023.1.0a4
Reproduced on: macOS Monterey 12.5.1, macOS Monterey 12.3.1 (Apple M1 Max)
Errors in the Console window:
Failed loading overlay "PBR Validation Settings"! System.NullReferenceException: Object reference not set to an instance of an object at UnityEditor.SceneViewLighting.OnCameraModeChanged (UnityEditor.SceneView+CameraMode mode) [0x000fb] in /Users/bokken/buildslave/unity/build/Modules/UIServiceEditor/SceneView/SceneViewLightingOverlays.cs:126 at UnityEditor.SceneViewLighting.CreatePanelContent () [0x00088] in /Users/bokken/buildslave/unity/build/Modules/UIServiceEditor/SceneView/SceneViewLightingOverlays.cs:104 at UnityEditor.Overlays.Overlay.CreateContent (UnityEditor.Overlays.Layout requestedLayout) [0x00071] in /Users/bokken/buildslave/unity/build/Editor/Mono/Overlays/Overlay.cs:395 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.SceneViewLighting.OnCameraModeChanged (UnityEditor.SceneView+CameraMode mode) (at /Users/bokken/buildslave/unity/build/Modules/UIServiceEditor/SceneView/SceneViewLightingOverlays.cs:126)
UnityEditor.SceneViewLighting.CreatePanelContent () (at /Users/bokken/buildslave/unity/build/Modules/UIServiceEditor/SceneView/SceneViewLightingOverlays.cs:104)
UnityEditor.SceneViewLighting.OnCameraModeChanged (UnityEditor.SceneView+CameraMode mode) (at /Users/bokken/buildslave/unity/build/Modules/UIServiceEditor/SceneView/SceneViewLightingOverlays.cs:113)
UnityEditor.SceneView.set_cameraMode (UnityEditor.SceneView+CameraMode value) (at /Users/bokken/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:589)
UnityEditor.SceneRenderModeWindow.DoBuiltinMode (UnityEngine.Rect& rect, UnityEditor.SceneView+CameraMode mode) (at /Users/bokken/buildslave/unity/build/Editor/Mono/Annotation/SceneRenderModeWindow.cs:302)
Issues you vote on will appear here