Search Issue Tracker
Fixed
Fixed in 2022.2.9f1, 2023.1.0b6, 2023.2.0a4
Votes
0
Found in
2022.1.13f1
2023.1.0a5
2023.2.0a1
Issue ID
UUM-13595
Regression
Yes
“NullReferenceException” and “Failed loading overlay “PBR Validation Settings”!” errors are thrown in the Console window when selecting Material Validator modes
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:
{code:java}
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)
{code}
{code:java}
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)
{code}
Comments (2)
-
sewy
Jul 28, 2023 15:24
Will this be backported into 2021.3? Having the same issue.
-
putlocker
Sep 02, 2022 15:50
://play.acast.com/s/631203bed8c6650013db2c38
://play.acast.com/s/631205918aeabb0014b6b30c
://play.acast.com/s/6312087758fcaa0013da1e8c
://play.acast.com/s/63120a8d4a78b7001327092f
://play.acast.com/s/63120c13ae5d130012508749
://play.acast.com/s/63120d9ea66f240012d937fa
://play.acast.com/s/63120f1a0a91900012845d0d
://play.acast.com/s/6312109aae5d130012509a36
://play.acast.com/s/631223b9688483001217976d
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Licensing Client fails to launch when opening Unity Hub
- Sprite Atlas Inspector preview disappears when entering Play mode unless SpriteAtlasMode is set to "Sprite Atlas V2 - Enabled"
- Opening reference for Audio Importer opens missing page
- [Android] SpriteAtlas gets corrupted in Player when using Late binding with SRP Batcher enabled
- Build fails with compiler errors when switching scripts GUIDs
Resolution Note (fix version 2023.2.0a4):
Fixed by unknown PR.
Resolution Note (fix version 2023.1.0b6):
Fixed by unknown PR.
Resolution Note (fix version 2022.2.9f1):
Fixed by unknown PR.