Unity3d release WebGL needs to be installed Unitysetup-webgl-support-for-editor-5.3.4f1.exe
Unitydownloadassistant-5.3.4f1.exe installation is required when installing Unity3d
After installation, you can publish WebGL, do not tick developmentbuild when publishing, check the file is very large
After publishing the file is
Finally, the deployment is on IIS
When accessed after deploying to IIS, the following occurs:
It is relatively simple to publish on II7.0 or 10.0:
1 Write the configuration file, Web. config, and put it in the root directory.
<configuration>
<system.webServer>
<staticContent>
<mimemap fileextension= ". Mem" mimetype= "Application/octet-stream"/>
<mimemap fileextension= ". Data" mimetype= "Application/octet-stream"/>
<mimemap fileextension= ". Memgz" mimetype= "Application/octet-stream"/>
<mimemap fileextension= ". Datagz" mimetype= "Application/octet-stream"/>
<mimemap fileextension= ". Unity3dgz" mimetype= "Application/octet-stream"/>
<mimemap fileextension= ". Jsgz" mimetype= "application/x-javascript; Charset=utf-8 "/>
</staticContent>
</system.webServer>
</configuration>
IIS6.0 the configuration file is not available, you need to add the above configuration file. Mem data memgz. Datagz. unity3dgz. Jsgz manually into MIME
The results are as follows:
Unity3d Publish WebGL deployment in IIS