godot/demos/misc/autoload/scene_b.gd

6 lines
105 B
GDScript

extends Panel
func _on_goto_scene_pressed():
get_node("/root/global").goto_scene("res://scene_a.scn")