BuildAssetBundleOptions.ChunkBasedCompression

Description

Use chunk-based LZ4 compression when creating the AssetBundle.

When chunk-based compression is used, the content of the AssetBundle is broken into individual segments, which are compressed independently using the CompressionType.Lz4HC algorithm. The resulting file is typically larger than full file CompressionType.Lzma compression which is used by default, but AssetBundles built with this format can be loaded incrementally, e.g. by only decompressing the needed chunks. This is the default format used for AssetBundles stored in the AssetBundle Cache and provides a good balance between compression ratio and load performance.

Related topics: AssetBundles compression, BuildCompression, CompressionType, ArchiveHandle.Compression, Caching, BuildAssetBundleOptions.UncompressedAssetBundle, BuildOptions.CompressWithLz4.


Did you find this page useful? Please give it a rating: