unity nullreferenceexception for Preview window
NullReferenceException: Object reference not set to an instance of an object UnityEditor.PreviewWindow.OnDisable () (at C:/buildslave/unity/build/Editor/Mono/Inspector/PreviewWindow.cs:28) UnityEditor.WindowLayout:LoadWindowLayout(String, Boolean)
I don't know what this means, I look every where for an error.
I am having the same issue, did you ever find a solution to this?
Answer by Matt-Black · Sep 26, 2018 at 02:05 PM
I had the same problem after upgrading Unity and opening an old project. Just do: "Window>Layouts>Revert Factory Settings."
Answer by zgp7777 · Sep 01, 2020 at 07:36 AM
my problem occurred again when i change UI layout again.
"Window>Layouts>Save Layouts..." fixed it for me. ,For me, the problem continues when i changed UI layout again.
"Window>Layouts>Save Layouts..."
Fixed my issue.
Your answer
![](https://koobas.hobune.stream/wayback/20220612171606im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
null reference Exception object reference not set i did not understand the prob. please help me 1 Answer
Unity3d Script does not work anymore 1 Answer
is my enemy selector null reference a problem? 1 Answer
NullReferenceException when attempting to call a GameObject from within PointerEventData 1 Answer
Why do I keep getting a null reference? Its not null! 0 Answers