Unity 2020 project building asm.js files instead of wasm

1.3k Views Asked by At

I upgraded a project from unity 2018 to unity 2020. the webGL build for unity 2020 should default to wasm (Web assembly) but instead it is building the project with asm.js. I can't figure out how to fix this.

2

There are 2 best solutions below

1
On

All I needed to do was edit ProjectSettings/projectsettings.asset and set webGLLinkerTarget: 1

1
On

You find it in your explorer: Go to your project location, there should be a folder named "ProjectSettings", in there you find the "ProjectSettings.asset". In the file you can now edit parameters by simply writing and saving.