unity发布webgl和html,Unity WebGL打包发布报错

Unity WebGL打包发布时在Building native binary with IL2CPP...报错:

Failed running D:DownloadAppsUnity2019.4.8f1EditorDatail2cpp/build/deploy/net471/il2cpp.exe --convert-to-cpp --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WebGL" --architecture="EmscriptenJavaScript" --configuration="Release"

......

......

ObjectFiles: 217 of which compiled: 0

Total compilation time: 369 milliseconds.

Response file: C:Users���ܲ�AppDataLocalTemp\_47191~1esponse.rsp

Response file: C:Users���ܲ�AppDataLocalTemp\_11604~1esponse.rsp

il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException:

......

......

检查过在编辑器里能够正常运行,项目路径和打包路径都没有中文,但是上面报错的地方出现了乱码。

在Project Settings>Player>Other Settings里将Api Comp

你可能感兴趣的:(unity发布webgl和html,Unity WebGL打包发布报错)