Expand description
Unity AssetBundle processing module
This module provides comprehensive AssetBundle processing capabilities, organized following UnityPy and unity-rs best practices.
§Architecture
The module is organized into several sub-modules:
header- Bundle header parsing and validationtypes- Core data structures (AssetBundle, BundleFileInfo, etc.)compression- Compression handling (LZ4, LZMA, Brotli)parser- Main parsing logic for different bundle formatsloader- Resource loading and management
§Examples
use unity_asset_binary::bundle::{BundleLoader, BundleLoadOptions};
// Simple bundle loading
let bundle = unity_asset_binary::bundle::load_bundle("example.bundle")?;
println!("Loaded bundle with {} assets", bundle.asset_count());
// Advanced loading with options
let mut loader = BundleLoader::with_options(BundleLoadOptions::fast());
let bundle = loader.load_from_file("example.bundle")?;
// Find specific assets
let texture_assets = loader.find_assets_by_name("texture");Modules§
- compression
- Bundle compression handling
- header
- AssetBundle header parsing
- loader
- Bundle resource loading and management
- parser
- Bundle parser implementation
- types
- Bundle data structures
Structs§
- Asset
Bundle - A Unity AssetBundle
- Bundle
Compression - Bundle compression handler
- Bundle
File Info - Information about a file within the bundle
- Bundle
Format Info - Bundle format information
- Bundle
Header - AssetBundle header information
- Bundle
Info - Bundle information summary
- Bundle
Load Options - Bundle loading options
- Bundle
Loader - Bundle resource loader
- Bundle
Parser - Main bundle parser
- Bundle
Processor - Main bundle processing facade
- Bundle
Resource Manager - Bundle resource manager
- Bundle
Statistics - Bundle statistics
- Compression
Options - Compression options for bundle processing
- Compression
Stats - Compression statistics
- Directory
Node - Directory node in the bundle
- Loader
Statistics - Loader statistics
- Parsing
Complexity - Parsing complexity information
Functions§
- create_
processor - Convenience functions for common operations Create a bundle processor with default settings
- extract_
file_ from_ bundle - Quick function to extract a specific file from bundle
- get_
bundle_ info - Quick function to get bundle information
- get_
supported_ formats - Get supported bundle formats
- is_
valid_ bundle - Check if a file is a valid Unity bundle
- list_
bundle_ contents - Quick function to list bundle contents
- load_
bundle - Convenience functions for quick bundle loading Load a single bundle from file
- load_
bundle_ from_ memory - Load a bundle from memory
- load_
bundle_ with_ options - Load a bundle with specific options