SkillAgentSearch skills...

UnityCompressLZMA

UPK->LZMA压缩

Install / Use

/learn @l2xin/UnityCompressLZMA
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

UnityCompressLZMA

可以实现Files->UPK->LZMA压缩

  • LZMA压缩方式:Compress.Info.dll和Compress.LZMA.dll 文件

  • GZip压缩方式:Compress.Info.dll和ICSharpCode.SharpZipLib.dll 文件

示例

 LZMAFile.CompressAsync(Application.dataPath + "/music.mp3", Application.dataPath + "/music.lzma", null);  
 GZipFile.CompressAsync(Application.dataPath + "/music.mp3", Application.dataPath + "/music.gzip", null);  
 LZMAFile.DeCompressAsync(Application.dataPath + "/music.lzma", Application.dataPath + "/lzmamusic.mp3", null);  
 GZipFile.DeCompressAsync(Application.dataPath + "/music.gzip", Application.dataPath + "/gzipmusic.mp3", null);
 
 UPKFolder.PackFolderAsync(Application.dataPath + "/picture", Application.dataPath + "/picture.upk", ShowProgress);  
 UPKFolder.UnPackFolderAsync(Application.dataPath + "/picture.upk", Application.dataPath + "/", ShowProgress);  
 
 void ShowProgress(long all,long now)  {  
     double progress = (double)now /all;  
     Debug.Log("当前进度为: " + progress);  
}  

Related Skills

View on GitHub
GitHub Stars15
CategoryDevelopment
Updated1y ago
Forks6

Languages

C#

Security Score

60/100

Audited on Jan 22, 2025

No findings