Unity Binary Asset Parser
This crate provides functionality to parse Unity binary file formats including:
- AssetBundle files (.bundle, .unity3d)
- Serialized Asset files (.assets)
- Resource files
Features
- AssetBundle parsing: Support for UnityFS format
- Compression support: LZ4, LZMA, and other compression formats
- TypeTree parsing: Dynamic type information for objects
- Object extraction: Extract Unity objects from binary data
Feature Flags
texture: Texture processing (basic formats + PNG export)audio: Audio processing (all formats including Vorbis, MP3)mesh: Mesh processing (parsing + basic export)sprite: Sprite processing (requires texture support)texture-advanced: Advanced texture formats (DXT, ETC, ASTC) - requires texture2ddecodermesh-export: Advanced mesh export (OBJ format)
Example
use load_bundle_from_memory;
use fs;
// Load an AssetBundle file
let data = read?;
let bundle = load_bundle_from_memory?;
// Access contained assets
for asset in &bundle.assets
# Ok::