This is not a typical NullReferenceException post, as that usually happens when you don’t setup a reference to an object before using it. This is an error that I get every time I open Unity. Well, actually 2 types of errors. It starts with:
RELEASEALLSCRIPTCACHES DID NOT RELEASE ALL SCRIPT CACHES
And then I get about 18-20 of the NullReferenceExceptions:
NullReferenceException: Object reference not set to an instance of an object UnityEditor.UIElements.UIElementsEditorUtility…cctor () (at /Users/bokken/buildslave/unity/build/Editor/Mono/UIElements/UIElementsEditorUtility.cs:60)
Thereafter, if I select any GameObjects in the hierarchy, the same NullReferenceException error appears in the console and the inspector window is completely blank.
I found a really silly hack to fix this. Unity needs to recompile the scripts, so I edit/save a script in VSCode and I come back to Unity and magically the errors go away and the inspector shows the components as expected.
I have submitted a bug report, but it seems bug reports often fall on deaf ears, so I’m testing the waters here to see if someone has some insight on how to sort out a real fix for this.
Cheers,