Base options for destroying display objects.
Controls how deep the destruction process should go through the display tree.
Example
// Basic destruction - only this container container.destroy({ children: false });
// Deep destruction - container and all children container.destroy({ children: true });
// Cleanup pattern functioncleanupScene(scene:Container) { // Remove from parent first scene.parent?.removeChild(scene); // Then destroy with all children scene.destroy({ children: true }); }
Base options for destroying display objects. Controls how deep the destruction process should go through the display tree.
Example
See