I wonder if scene.stop() method means its scene is destroyed because in the Phaser docs, scene.stop() not only shutdown the Scene but also clearing display list, timers, etc.
So shoud i free-up any resources before call scene.stop()?
I wonder if scene.stop() method means its scene is destroyed because in the Phaser docs, scene.stop() not only shutdown the Scene but also clearing display list, timers, etc.
So shoud i free-up any resources before call scene.stop()?
A stopped scene isn’t destroyed, because it can be restarted (but not resumed). It is cleared of most of its contents.
If your scene has its own references to things created during the last cycle (game objects, tweens, etc.), you can remove those references.