Change scene and queue.free()

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jospic
:warning: Old Version Published before Godot 3 was released.

When is changing a scene with the command get_tree().change_scene(Scene) is mandatory kill the current scene with command currentScene.queue_free()? Or is an operation unnecessary?
Thx
-j

:bust_in_silhouette: Reply From: CowThing

No you don’t need to delete the old scene when using change_scene or change_scene_to. They will automatically delete the old scene.

Indeed, as evidenced by scene/main/scene_main_loop.cpp:1187

Bojidar Marinov | 2016-05-05 19:43