In general, the code should be able to handle multiple calls to the generateScript
method.
It can be called when program is saved, or typically when the program is played.
At play instance, it could happen, if the user double-taps (debounce) on the Play button.
Note: generateScript is only called, when all nodes in a program context return true on their respective isDefined
calls.
1 Like