unity转小游戏报错Building Library\Bee\artifacts\WebGL\Building Library\Bee\artifacts\WebGL\build\debug_W

Building Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js failed with output:

system_libs:WARNING: main() is in the input files, but “_main” is not in EXPORTED_FUNCTIONS, which means it may be eliminated as dead code. Export it if you want main() to run.

解决方法:
第一种解决方法: 重新安装unity

第二种方法:找到一台能打包的电脑把WebGLSupport文件夹复制过来,替换掉你电脑上的就好了(亲测有效)

例如:我的安装路径:C:\Program Files\Unity\Hub\Editor\2021.3.14f1c1\Editor\Data\PlaybackEngines\WebGLSupport,把WebGLSupport文件夹替换后就可以正常打包

猜你喜欢

转载自blog.csdn.net/czh986911/article/details/140792312