比较简单粗暴的方法,没有缓存,即用即加载。先把 UI的tscn 都放到一个文件夹中,也可以指定子文件夹 extends Node signal ui_opened(ui_name) export(String, DIR) var ui_dir:String func open(ui_name:String,msg:Dictionary = {},sub_dir:String= /,suffix:String = .tscn)->void: var ui:Node = null if has_node(ui_name) : ui = get_node(ui_name) else