Crate unreal_asset

Source
Expand description

This crate is used for parsing Unreal Engine uasset files

§Examples

§Reading an asset that doesn’t use bulk data

use std::fs::File;

use unreal_asset::{
    Asset,
    engine_version::EngineVersion,
};

let mut file = File::open("asset.uasset").unwrap();
let mut asset = Asset::new(file, None, EngineVersion::VER_UE4_23).unwrap();

println!("{:#?}", asset);

§Reading an asset that uses bulk data

use std::fs::File;

use unreal_asset::{
    Asset,
    engine_version::EngineVersion,
};

let mut file = File::open("asset.uasset").unwrap();
let mut bulk_file = File::open("asset.uexp").unwrap();
let mut asset = Asset::new(file, Some(bulk_file), EngineVersion::VER_UE4_23).unwrap();

println!("{:#?}", asset);

Modules§

ac7
AC7 Encryption
asset
Generic unreal asset traits Must be implemented for all unreal assets
containers
Various containers
custom_version
UAsset CustomVersion and a known list of them
engine_version
Unreal Engine version
enums
Various UAsset enums
error
All errors thrown by unreal_asset
exports
UAsset exports
flags
Various UAsset flags
fproperty
All of Unreal Engine FProperties
kismet
Kismet bytecode
object_version
Unreal object versions
properties
All UAsset properties
reader
Archive readers/writers
registry
Asset Registry
types
Unreal types
unversioned
Allows reading unversioned assets using mappings
uproperty
All of Unreal Engine UProperties

Macros§

cast
Cast a Property/Export to a more specific type
impl_property_data_trait
Default implementations for PropertyDataTrait
implement_get
Implement ExportNormalTrait + ExportBaseTrait for an export that contains a NormalExport
optional_guid
Read a property guid if reading with header
optional_guid_write
Write a property guid if writing with header
simple_property_write
Write a simple one-value property

Structs§

Asset
Unreal Engine uasset
FEngineVersion
EngineVersion for an Asset
Import
Import struct for an Asset
ParentClassInfo
Parent Class Info