WebGl and Assetbundle

Source: Internet
Author: User
The published WebGL project, to load assetbundle smoothly, needs to be noticed from the time of packaging

BuildPipeline.BuildAssetBundles(outPath, BuildAssetBundleOptions.ChunkBasedCompression, BuildTarget.WebGL);

Be sure to note the publishing platform:

BuildTarget.WebGL

As for compression mode

BuildAssetBundleOptions.ChunkBasedCompression    //LZ4BuildAssetBundleOptions.None

Either way, not the others.

When loaded, WEBGL does not support loading local, so it is customary to successfully load the local package when it is developed and cannot load the local package after publishing it as a WebGL project .
The Assetbundle resource must be uploaded to the server, loaded with the URL of the file, or with www.

As for the server, simply get an IIS, and take care to set it up.
(see: Download Assetbundle from the IIS Web site and write to the local disk for the specified path)

WebGl and Assetbundle

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.