Godot导出文件格式的变更
godot项目导出后,路径会有所变化,此时和编辑器内的路径已经不同,使用file_exist方法可能会失败
导出前--导出后
.png-->.png.import
.jpg-->.jpg.import
.tres-->.tres
.gd-->.gdc
.tscn-->.tscn
代码上判断需要变更为导出后的格式
if dir.file_exists(tex_path) or dir.file_exists(tex_path + ".import"):
其他格式如果不确定导出后的格式,可以在导出时选择导出pck/zip,解压后进行对比
Comments
Post a Comment