Crate uasset[−][src]
Expand description
The Rust uasset Library
uasset
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
, first add this to your Cargo.toml
:
[dependencies]
uasset = "^0.2"
Then import AssetHeader
into your program:
use uasset::AssetHeader;
Finally, parse a file using AssetHeader::new
.
Example
let file = File::open(path)?; let package = AssetHeader::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
AssetHeader | A table of contents for a uasset loaded from disk, containing all the shared package summary information.
This roughly maps to |
ImportIterator | Iterator over the imported packages in a given |
InvalidNameIndexError | Error when attempting to resolve an index |
NameReference | A reference to a name in the |
ObjectImport | A reference to an object in another package. Typically accessed through |
Enums
Error | Errors from parsing an asset |
ObjectImportOuter | A reference to either an import or an export in the asset. |
ObjectVersion | Maps to |
PackageFlags | Maps to |
Type Definitions
Result | Results from parsing a uasset |