Quantcast
Channel: Questions in topic: "exception"
Viewing all articles
Browse latest Browse all 470

Is there a way to know that Unity is quiting Play mode?

$
0
0
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...

Viewing all articles
Browse latest Browse all 470

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>