123456789 |
- extends Panel
- func _on_goto_scene_pressed():
- # Change the scene to the given PackedScene.
- # Though it usually takes more code, this can have advantages, such as letting you load the
- # scene in another thread, or use a scene that isn't saved to a file.
- var scene := load("res://scene_a.tscn") as PackedScene
- get_tree().change_scene_to_packed(scene)
|