Callbacks from Scene Manager?

I need to remove and readd a scene in order to completely destroy it and it’s properties etc.

I understand I can do

scene.remove(key)
scene.add(key)

however, in doing so I need to wait between each operation for the scene manager to queue the operations and do it’s business

How can I get some kind of callback with confirmation of the removal?

I have gotten around this by adding a short delay of a second with a callback to add the scene again for the time being which works but it would be better if there was a nice callback for the scene being removed.

You can listen for DESTROY from the first scene instance and BOOT or READY from the second.

1 Like

Thanks samme. I’ve not been here long but I can see that you are often the the hero of this forum. Much appreciated.

1 Like