system
1
|
|
|
|
Attention |
Topic was automatically imported from the old Question2Answer platform. |
|
Asked By |
SpaceFish |
ground = (PackedScene)ResourceLoader.Load("res://NewGame.tscn/");
Control newGround = ground.Instance() as Control;
AddChild(newGround);
Works but I need thee old scene to disappear.
system
2
|
|
|
|
Reply From: |
jgodfrey |
You can remove a node from the scene tree in (at least) a few ways.
remove_child(node)
- Removes the child from the scene tree, but does not delete it.
queue_free()
- Queues a node for deletion.
Also, it looks like you’re using C#, so you’ll need to convert the above GDscript calls…
Thanks, got it .
SpaceFish | 2020-10-23 10:47
Thanks, got it .
And it worked whilst using C#
I just used .ChangeSceneTo();
SpaceFish | 2020-10-23 10:54