Im no trying good about 4h to solve these to issue and don’t know what to do know.
1)
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ProfilerWindow.SaveViewSettings () (at :0)
UnityEditor.ProfilerWindow.OnDisable () (at :0)
If I click on this error I get an inspector. But I don’t know what that is, because it’s not from me. I search everywhere this ProfilerWindow file. In the terminal finder, explorer but I didn’t find it. I never deleted such file also.
What can I do for error 1?
IConnectionState was not Disposed! Please make sure to call Dispose in OnDisable of the EditorWindow in which it was used.
UnityEditor.Networking.PlayerConnection.GeneralConnectionState:Finalize ()
There I also found nothing about that and I don’t get anything, if I click on it.
Unity 2022 is crazy buggy, i have got random error messages all the time without any reason. None appear in Unity 2021.3.
My favorite is this one
“NullReferenceException: SerializedObject of SerializedProperty has been Disposed.”
I wont even comment on the warnings about deprecate the direct URP camera render and new full screen quad renderer Blitter that both are not working at all like the current systems.
It is just that Unity releases untested versions all the time and lately at a massively increased rate, there is so many problems with Unity 2022 that i cant even comment on the above as it seems rather expected from Unity 2022.
I would try download the very latest 2022.3 version in case this has been resolved, otherwise i think cant do much about it. Unity need to fix their stuff and hopefully will do in 2022 and not move the fixes to 2023.3 only.
Generally from my side i decided to move to next versions only after the next LTS is released, as only then there is a slight chance something is working proper in the previous LTS (but is far from certain)
The 1st error mentions the Profiler, so one thing to try is Reset on the windows, in case some rogue window is remaining hidden and cause the error. This method also solves various other Editor issues, e.g. editor scripts not working on scene view.
All that said, a NullRef, coming from this location (eg, NOT your code, such as UnityEditor.Graphs or UIElements or PlasticSCM), is often fixed by either Reset Layouts (upper right) or else Right-click Project, Reimport-All.
I faced this error too.
Window > Layouts > default helped me first. Then it came back.
Check the latest install packages. Remove them and try again. It helps me. I think dependences do not install well; that causes me this issue.