Crate uasset[−][src]
Expand description
The Rust UAsset Library
uasset-rs
is a pure Rust implementation of the Unreal Engine .uasset
file format.
It gives you direct access to fields & values in the uasset format, and is intended
to allow you to build tools outside of the Unreal Editor to work with uassets.
Usage
To use uasset-rs
, first add this to your Cargo.toml
:
[dependencies]
uasset = "^0.1"
Then import PackageFileSummary
into your program:
use uasset::PackageFileSummary;
Finally, parse a file using PackageFileSummary::new
.
Example
let file = File::open(path)?; let package = PackageFileSummary::new(&file)?; for import in package.package_import_iter() { println!("Import: {}", import); }
Crate features
commandline-tool
- Allows the building of auasset
command line tool that can be used to inspect specific assets.
Structs
ImportIterator | Iterator over the imported packages in a given |
InvalidNameIndexError | Error when attempting to resolve an index |
PackageFileSummary | A table of contents for a uasset loaded from disk, containing all the shared package summary information.
This roughly maps to |
Enums
Error | Errors from parsing an asset |
ObjectVersion | Maps to |
PackageFlags | Maps to |
Type Definitions
Result | Results from parsing a uasset |