Cancel plugin onScoreStateChanged function

• Jun 5, 2024 - 20:14

In MS3, once this function is defined it continues to run even when the plugin is closed. I checked this by using a global property var initialsed to 0 and then incrementing each time the function executes, outputting the value to console.log.

After starting and stopping the plugin 4 times and checking the debug log, there were 4 separate instances of the global variable!

How do I cancel onScoreStateChanged on closing the plugin?


Comments

Do you still have an unanswered question? Please log in first to post your question.