Unity3d Publishing WebGL Deployment in IIS

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.