Using unity 2021.1.6f1
-
Create a new Unity project.
-
Add fmod plugin. Window->Package Manager, FMOD for unity. (If its not there you might need to download fmodstudio20109.unitypackage, and just import it)
-
Build unity project, it shall succeed. (make sure platform is WebGL)
-
Download python 3 (https://www.python.org/ftp/python/3.9.5/python-3.9.5-amd64.exe)
-
Install it for all users, select “Add Python 3.9 to PATH”, then “Custom installation”.
-
On the next screen select “for all users (requires elevation)”
-
On the next screen select “Install for all users” → Click install button.
-
Start search “environment variables”, Add PYTHONPATH and PYTHONHOME set both to “C:\Program Files\Python39”
-
Restart computer.
-
Build unity project, it shall fail with 3 errors. (make sure platform is WebGL)
The first error is:
Exception: Unity.IL2CPP.Building.BuilderFailedException: File “C:\Program Files\Python39\lib\site.py”, line 178
file=sys.stderr)
^
SyntaxError: invalid syntax