Contains information about compression methods, compression levels and block sizes that are supported by archive compression at build time and recompression at runtime.
The formats that are currently supported are exposed with static properties. There are three supported BuildCompression types for builds (LZ4, LZMA and Uncompressed) and two supported recompression methods for runtime (LZ4Runtime and UncompressedRuntime).
Unity archive files support compression of the content contained within the archive. This applies both to AssetBundles and the output of BuildPipeline.BuildContentDirectory.
Additional resources: AssetBundle.RecompressAssetBundleAsync, AssetBundles compression, BuildAssetBundleOptions.ChunkBasedCompression, BuildAssetBundleOptions.UncompressedAssetBundle, BuildOptions.CompressWithLz4, CompressionType, ArchiveFileInterface, Caching.
| Property | Description |
|---|---|
| LZ4 | LZ4HC "Chunk Based" Compression. |
| LZ4Runtime | LZ4 Compression for runtime recompression. |
| LZMA | LZMA Compression. |
| Uncompressed | Uncompressed build output. |
| UncompressedRuntime | Uncompressed AssetBundle. |