AdamsLair / duality

a 2D Game Development Framework
https://adamslair.github.io/duality
MIT License
1.41k stars 286 forks source link

Editor doesnt tell you you forgot to unsubcribe a event #666

Open Barsonax opened 6 years ago

Barsonax commented 6 years ago

Summary

It would be nice if the editor could tell you you forgot to unsubscribe a event somewhere as this can lead to very strange bugs if left unchecked.

How to reproduce

If you want to redo this you have to close and reopen Duality to get out of the corrupted state.

Workaround

ilexp commented 6 years ago

It would be nice if the editor could tell you you forgot to unsubscribe a event somewhere

There are some core events where Duality actually informs you about that, but this is only executed when reloading a plugin, not when exiting sandbox mode. Might need to take a closer look to figure out how to address this.