Version: 2022.3
言語: 日本語

説明

Use chunk-based LZ4 compression when building the Player.

This value allows the data to be stored in a compressed form when the Player is deployed to a device. Decompression is performed in real time when the Player reads the data. Scene or Asset loading might be faster or slower depending on disk read speed when compared to using uncompressed data.

Compressed data files include: Player settings - globalgamemanagers and globalgamemanagers.assets files. Scenes and Assets - level* and sharedassets*.asset files. Resources - resources.assets files. GI data. Built-in resources - unity_builtin_extra file. CompressWithLz4 sets compression parameters to LZ4 compression and splits data files into 128KB chunks.
This feature is supported for Standalone, Android and iOS build targets and is default for WebGL target.
Enabling CompressWithLz4 in Android might be a significant performance boost when loading data as LZ4 decompression is faster than the default Zip decompression.

Note:
Compression might affect the size of a game installer making it larger, even though size of the Player on a device is smaller. Subsequent compression is less efficient or even impossible.

See Also: BuildAssetBundleOptions.ChunkBasedCompression, AssetBundles-Building, ReducingFilesize.