UnityAsset.NET
A work-in-progress .NET library for parsing/serializing/patching Unity Engine asset files.
Install / Use
/learn @AXiX-official/UnityAsset.NETREADME
UnityAsset.NET
A .NET library undergoing active refactoring, currently focused on high-performance parsing and reading of Unity Engine asset files.
Only support Unity 2017.x or later.
Features
BundleFile
- [x] Parsing and Reading
- [x] Serialization
- [ ] ~~Patching~~ (Will be re-introduced in a future version)
- [x] Calculate/Patch crc32
SerializedFile
- [x] Parsing and Reading
- [x] Serialization
- [ ] ~~Patching~~ (Temporarily removed)
Asset
- [x] Parsing based on TypeTree
- [ ] ~~Serialization~~ (Temporarily removed)
- [ ] ~~Patching~~ (Temporarily removed)
Examples
Unity CN Decryption
To load BundleFile with Unity CN Encryption, there are two ways.
// Hex string format (32 characters)
Setting.DefaultUnityCNKey = "587865636f6472506547616b61326536"; // Represents "XxecodrPeGaka2e6" in hex
BundleFile bf = new BundleFile( @"path to your bundlefile");
or
// Plain string format (16 characters)
BundleFile bf = new BundleFile( @"path to your bundlefile", "XxecodrPeGaka2e6");
~~To remove Unity CN Encryption form File, you can simply save BundleFile without key~~
// Temporarily removed
bf.Serialize(@"path to save file", CompressionType.Lz4HC, CompressionType.Lz4HC);
Stripped Version
Some BundleFile's version may be stripped, to load those file you can set a specific version
Setting.DefaultUnityVerion = "2020.3.48f1"
Roadmap
- [ ] v0.4: Re-architect and re-implement a robust and flexible serialization API.
- [ ] v0.5: Re-introduce patching capabilities based on the new object model.
Credits
This project stands on the shoulders of these amazing open-source projects:
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
