Jump to content

How do I clear all game object in Phaser3? (or clear world)


Recommended Posts

Thanks a lot. sharks

I found one way to keep gameobject across another scenes.

gameObject.ignoreDestroy = true;

and when you go across another scene, you need to setup displayList.


If I want to clear all game objects, just shutdown this scene. (start another scene or restart) (if gameObject.ignoreDestroy == false)


Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...