My scripts work just fine, but when I unpress Play more button in Editor I get a bunch of these errors:
MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it.
It comes from OnDisable method, so I assume that Unity has destroyed some object before the call to OnDisable of my script.
Is there a way to know that Unity is quitting Play mode? or workaround it in some other way...
↧