- Home /
How to modify the Emscripten building commands and flags for WebGL build
Hi Is there a way for user to see the full commands calling "BuildTools/Emscripten/emcc" and modify the commands and flags as we need ?
For example, I want to use "--embed-file" instead of "--preload-file".
Curious about this too, was looking into it for trying --memoryprofiler (from https://github.com/kripken/emscripten/pull/3781/files)
Answer by tonialatalo · Jan 12, 2017 at 01:57 PM
Apparently answered in: http://answers.unity3d.com/questions/1147408/can-unity-export-the-emscripten-symbols-map-on-web.html
PlayerSettings.SetPropertyString("emscriptenArgs", "--emit-symbol-map");
Just to update this for 2017+ PlayerSettings.SetPropertyString is deprecated and we should use the following ins$$anonymous$$d: PlayerSettings.WebGL.emscriptenArgs = "your args"