23Level transition
跳转到指定scene(两种方案):
- 1.change_scene_to_file:
get_tree().change_scene_to_file("res://path/name.tscn")
- 2.change_scene_to_packed:
1
2
var x_scene:PackedScene=preload("res://path/name.tscn")
get_tree().change_scene_to_packed(x_scene)
This post is licensed under CC BY 4.0 by the author.