Wanna reduce your json file size in Unity? Use Brotli Json compression!
- Brotli Compression/Decompression ~%75 Reduced Size
- Batch processing of folders
- File/Folder selection support
- Custom
.brfile importer
- Open the tool window:
Tools > BrotliJson - Set your target path (default:
Assets/Resources) - Choose compression level (Optimal/Fastest/Smallest)
- Use either:
- Batch Operations - Processes all files in target path
- Selected Files - Works on currently selected files/folders
// Decompression from TextAsset
TextAsset brAsset = Resources.Load<TextAsset>("compressed-file");
string json = BrotliUtility.DecompressFromBase64(brAsset.text);