Can I remove a scene in the destroy of the same scene?

To make sure the scene is completely removed, can I add this function -composer.removeScene(sceneName) inside the destroy of the same scene?

You can’t destroy the current active scene.


Thanks, removing the previous scene in the create function of the next scene does the job.

That actually may not be the best way.

The next scene’s create can be called while you are still showing the current scene.

I’d wait to destroy the prior scene until the current scene is in the ‘will’ phase of show()

1 Like

Got you, thanks!

1 Like