UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FAssetPackageData Class Reference

#include <AssetData.h>

Public Member Functions

 FAssetPackageData ()
 
TConstArrayView< UE::AssetRegistry::FPackageCustomVersionGetCustomVersions () const
 
void SetCustomVersions (TConstArrayView< FCustomVersion > InCustomVersions)
 
void SetCustomVersions (TConstArrayView< UE::AssetRegistry::FPackageCustomVersion > InCustomVersions)
 
void SetCustomVersions (TArray< UE::AssetRegistry::FPackageCustomVersion > &&InCustomVersions)
 
bool IsLicenseeVersion () const
 
void SetIsLicenseeVersion (bool bValue)
 
bool HasVirtualizedPayloads () const
 
void SetHasVirtualizedPayloads (bool bValue)
 
bool IsReadOnly () const
 
void SetIsReadOnly (bool bValue)
 
COREUOBJECT_API void SerializeForCache (FArchive &Ar)
 
COREUOBJECT_API void SerializeForCacheOldVersion (FArchive &Ar, FAssetRegistryVersion::Type Version)
 
SIZE_T GetAllocatedSize () const
 
COREUOBJECT_API FIoHash GetPackageSavedHash () const
 
COREUOBJECT_API void SetPackageSavedHash (const FIoHash &InHash)
 
COREUOBJECT_API void NetworkWrite (FCbWriter &Writer) const
 
COREUOBJECT_API bool TryNetworkRead (FCbFieldView Field)
 
void SetPackageLocation (FPackageName::EPackageLocationFilter PackageLocation)
 
FPackageName::EPackageLocationFilter GetPackageLocation () const
 

Public Attributes

FMD5Hash CookedHash
 
EPackageExtension Extension
 
TMap< FIoChunkId, FIoHashChunkHashes
 
TArray< FNameImportedClasses
 
int64 DiskSize
 
FPackageFileVersion FileVersionUE
 
int32 FileVersionLicenseeUE
 

Detailed Description

A class to hold data about a package on disk, this data is updated on save/load and is not updated when an asset changes in memory

Constructor & Destructor Documentation

◆ FAssetPackageData()

FAssetPackageData::FAssetPackageData ( )
inline

Member Function Documentation

◆ GetAllocatedSize()

SIZE_T FAssetPackageData::GetAllocatedSize ( ) const
inline

Returns the amount of memory allocated by this container, not including sizeof(*this).

◆ GetCustomVersions()

TConstArrayView< UE::AssetRegistry::FPackageCustomVersion > FAssetPackageData::GetCustomVersions ( ) const
inline

Custom versions used by the package, used to check whether we need to update the package for the current binary. The array is sorted by FPackageCustomVersion::operator<.

◆ GetPackageLocation()

FPackageName::EPackageLocationFilter FAssetPackageData::GetPackageLocation ( ) const
inline

◆ GetPackageSavedHash()

FIoHash FAssetPackageData::GetPackageSavedHash ( ) const

Hash of the package's .uasset/.umap file when it was last saved by the editor.

◆ HasVirtualizedPayloads()

bool FAssetPackageData::HasVirtualizedPayloads ( ) const
inline

Whether the package contains virtualized payloads or not

◆ IsLicenseeVersion()

bool FAssetPackageData::IsLicenseeVersion ( ) const
inline

Whether the package was saved from a licensee executable, used to tell whether non-matching FileVersionLicenseeUE requires a resave

◆ IsReadOnly()

bool FAssetPackageData::IsReadOnly ( ) const
inline

Whether the package is readonly or not

◆ NetworkWrite()

void FAssetPackageData::NetworkWrite ( FCbWriter Writer) const

◆ SerializeForCache()

void FAssetPackageData::SerializeForCache ( FArchive Ar)

Serialize as part of the registry cache. This is not meant to be serialized as part of a package so it does not handle versions normally To version this data change FAssetRegistryVersion

◆ SerializeForCacheOldVersion()

void FAssetPackageData::SerializeForCacheOldVersion ( FArchive Ar,
FAssetRegistryVersion::Type  Version 
)

◆ SetCustomVersions() [1/3]

void FAssetPackageData::SetCustomVersions ( TArray< UE::AssetRegistry::FPackageCustomVersion > &&  InCustomVersions)
inline

◆ SetCustomVersions() [2/3]

void FAssetPackageData::SetCustomVersions ( TConstArrayView< FCustomVersion InCustomVersions)
inline

◆ SetCustomVersions() [3/3]

void FAssetPackageData::SetCustomVersions ( TConstArrayView< UE::AssetRegistry::FPackageCustomVersion InCustomVersions)
inline

◆ SetHasVirtualizedPayloads()

void FAssetPackageData::SetHasVirtualizedPayloads ( bool  bValue)
inline

◆ SetIsLicenseeVersion()

void FAssetPackageData::SetIsLicenseeVersion ( bool  bValue)
inline

◆ SetIsReadOnly()

void FAssetPackageData::SetIsReadOnly ( bool  bValue)
inline

◆ SetPackageLocation()

void FAssetPackageData::SetPackageLocation ( FPackageName::EPackageLocationFilter  PackageLocation)
inline

◆ SetPackageSavedHash()

void FAssetPackageData::SetPackageSavedHash ( const FIoHash InHash)

◆ TryNetworkRead()

bool FAssetPackageData::TryNetworkRead ( FCbFieldView  Field)

Member Data Documentation

◆ ChunkHashes

TMap<FIoChunkId, FIoHash> FAssetPackageData::ChunkHashes

The hash of all the chunks written by the package writer for this package. This is only available after cooking. (Note, this only includes the ExportBundleData chunk if using ZenStoreWriter, as that chunk contains both the uasset and uexp data, which is managed separately in LooseCookedPackageWriter.)

◆ CookedHash

FMD5Hash FAssetPackageData::CookedHash

MD5 of the cooked package on disk, for tracking nondeterministic changes

◆ DiskSize

int64 FAssetPackageData::DiskSize

Total size of this asset on disk

◆ Extension

EPackageExtension FAssetPackageData::Extension

◆ FileVersionLicenseeUE

int32 FAssetPackageData::FileVersionLicenseeUE

Licensee file version that the package was saved with

◆ FileVersionUE

FPackageFileVersion FAssetPackageData::FileVersionUE

UE file version that the package was saved with

◆ ImportedClasses

TArray<FName> FAssetPackageData::ImportedClasses

List of classes used by exports in the package. Does not include classes in the same package.


The documentation for this class was generated from the following files: