Daily Godot Tip #22: The replace_by function can be used if you need to replace a certain node with another while keeping all children within the scene
Daily Godot Tip #22: The replace_by function can be used if you need to replace a certain node with another while keeping all children within the scene
If you do this remember to free the old one (or have some way of accessing it) since the engine won't do it for you