Reply To: [BUG] Exception while stopping playmode.

NodeCanvas Forums Support [BUG] Exception while stopping playmode. Reply To: [BUG] Exception while stopping playmode.

#14963
Gavalakis
Keymaster

Hello again,

I checked out the reproduction project you’ve sent me (thanks).
It seems that the issue is only caused in conjunction with the LoadSceneAsync (allowSceneActivation = false) task that exists in the BT, which seems to create some strange behaviour. A quickfix about this, is to add an extra protection check in MonoManager as to when an instance can be created. Please open up MonoManager.cs and change line number #36 to be like this:
if ( _current == null && Threader.applicationIsPlaying && !isQuiting ) {

This solves this edge case on my end. Please let me know.
Thanks 🙂

Join us on Discord: https://discord.gg/97q2Rjh