2017-06-30 08:39:26 +02:00
|
|
|
extends Panel
|
|
|
|
|
2024-06-01 12:12:18 +02:00
|
|
|
func _on_goto_scene_pressed() -> void:
|
2022-12-13 16:51:04 +01:00
|
|
|
# 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.
|
2024-06-01 12:12:18 +02:00
|
|
|
var scene: PackedScene = load("res://scene_a.tscn")
|
2022-12-13 16:51:04 +01:00
|
|
|
get_tree().change_scene_to_packed(scene)
|