URP all Objects suddenly invisible on Scene Change - The object of type 'Material' has been destroyed but you are still trying to access it
Hey all, so I finally started working with URP and Lightmap Baking, and at first it went really well, but then suddenly weird things started to happen:
First, the Lightmaps were all over the place. Random black squares happening, and so on.
Second, the Lightmaps were just completely black despite me changing nothing
Then, upon Scene Changes, all Objects were invisible and showed no Outlines when selected. Every Frame, I get this Error:
MissingReferenceException: The object of type 'Material' has been destroyed but you are still trying to access it.
(BTW the Materials are all still there and I changed nothing)
The Problem is that I have no idea what's going on. When I start the Project up, the Scene looks like Normal, with properly baked Lightmaps and so on, but as soon as I change the Scene (and come back), everything is invisible and the stated error message floods my console. Strangely the realtime lighting works as it should. I tries changing between CPU and GPU baking, restarting and so on, but nothing helped. Now as you might think, searching for solutions with MissingReferenceException is difficult because that's such a common error, but after looking around I found no-one with my issues... I also already tried to create a new project and re-import the old stuff, but the same thing happens.
Any help would be greatly appreciated, thanks!
Your answer
Follow this Question
Related Questions
Lightmapping Bounce Artifacts (Visible Seam when using 3d tiles) 0 Answers
Weird lighting artefacts all around scene after generating 0 Answers
What is this shadow in URP 0 Answers
Unity 4 lightmaps in Unity 5 3 Answers
Aura Lighting or my error? 0 Answers