Quantcast
Channel: Questions in topic: "webgl"
Viewing all articles
Browse latest Browse all 2390

Error when building in WebGL: "UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors"

$
0
0
I have been using Unity and building to WebGL on my Windows PC fine. Recently I switched over to a Ubuntu/Linux laptop but when I try to build to WebGL I get some errors. When I build a standalone executable it works fine. Steps to reproduce: 1. Create a project 2. Upload the project to the cloud 3. Install unity on a different computer 4. Download the project from the cloud 5. Attempt to build the same project to WebGL from the other computer I have tried: 1. Reload/re-import all assets 2. Changing build path 3. Restarting editor When I do this, the build fails with 3 error messages: 1. Exception: /home/mason/Unity/Hub/Editor/2019.4.16f1/Editor/Data/il2cpp/build/deploy/net471/il2cpp.exe did not run properly! [Full error message is very long][1] 2. Build completed with a result of 'Failed' in 45 seconds (44850 ms) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /home/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197) 3. UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002af] in /home/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:194 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in /home/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:95 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /home/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197) [1]: /storage/temp/172180-errors.txt

Viewing all articles
Browse latest Browse all 2390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>