问题已解决,将python环境变量修改为unityWebGL打包工具里自带的python即可,那个不存在的D盘是什么情况就不清楚了,总之是修好了……
Unity转小游戏报错?Building Library\Bee\artifacts\WebGL\il2cpp\master_WebGL_wasm\6vp4_inRT1.lump.o failed with output: Traceback (most recent call last): File "C:\Program Files\Unity\Hub\Editor\2021.3.13f1c1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\emcc2.py", line 23, in <module> from tools.toolchain_profiler import ToolchainProfiler File "C:\Program Files\Unity\Hub\Editor\2021.3.13f1c1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\tools\toolchain_profiler.py", line 18, in <module> from tools import response_file File "C:\Program Files\Unity\Hub\Editor\2021.3.13f1c1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\tools\response_file.py", line 10, in <module> from .utils import WINDOWS File "C:\Program Files\Unity\Hub\Editor\2021.3.13f1c1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\tools\utils.py", line 10, in <module> from . import diagnostics File "C:\Program Files\Unity\Hub\Editor\2021.3.13f1c1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\tools\diagnostics.py", line 9, in <module> import ctypes File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\__init__.py", line 7, in <module> ImportError: DLL load failed: �Ҳ���ָ����ģ�顣 UnityEditor.BuildPipeline:BuildPlayer (string[],string,UnityEditor.BuildTarget,UnityEditor.BuildOptions) WeChatWASM.WXEditorWindow:Build () (at Assets/WX-WASM-SDK/Editor/WXEditorWindow.cs:359) WeChatWASM.WXEditorWindow:DoExport (bool) (at Assets/WX-WASM-SDK/Editor/WXEditorWindow.cs:1419) WeChatWASM.WXEditorWindow:OnGUI () (at Assets/WX-WASM-SDK/Editor/WXEditorWindow.cs:1337) 不知道是什么情况,而且我的电脑只有C盘为啥他会去找D盘的东西…… 而且dll的名字打印出来也是乱码 unity版本为2021.3.13f1c1 小程序插件版本为:202303231431
2023-04-18