Navigation
API > API/Runtime > API/Runtime/CoreUObject
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
| Name | FAssetPackageData |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/AssetRegistry/AssetData.h |
| Include Path | #include "AssetRegistry/AssetData.h" |
Syntax
class FAssetPackageData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAssetPackageData() |
AssetRegistry/AssetData.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ChunkHashes | TMap< FIoChunkId, FIoHash > | The hash of all the chunks written by the package writer for this package. | AssetRegistry/AssetData.h | |
| CookedHash | FMD5Hash | MD5 of the cooked package on disk, for tracking nondeterministic changes | AssetRegistry/AssetData.h | |
| DiskSize | int64 | Total size of this asset on disk | AssetRegistry/AssetData.h | |
| Extension | EPackageExtension | AssetRegistry/AssetData.h | ||
| FileVersionLicenseeUE | int32 | Licensee file version that the package was saved with | AssetRegistry/AssetData.h | |
| FileVersionUE | FPackageFileVersion | UE file version that the package was saved with | AssetRegistry/AssetData.h | |
| ImportedClasses | TArray< FName > | List of classes used by exports in the package. Does not include classes in the same package. | AssetRegistry/AssetData.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CustomVersions | UE::AssetRegistry::FPackageCustomVersionsHandle | AssetRegistry/AssetData.h | ||
| Flags | uint32 | Bit storage for flags | AssetRegistry/AssetData.h | |
| PackageSavedHash | FIoHash | AssetRegistry/AssetData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SIZE_T GetAllocatedSize() |
Returns the amount of memory allocated by this container, not including sizeof(*this). | AssetRegistry/AssetData.h | |
TConstArrayView< UE::AssetRegistry::FPackageCustomVersion > GetCustomVersions () |
Custom versions used by the package, used to check whether we need to update the package for the current binary. | AssetRegistry/AssetData.h | |
FPackageName::EPackageLocationFilter GetPackageLocation() |
AssetRegistry/AssetData.h | ||
FIoHash GetPackageSavedHash() |
Hash of the package's .uasset/.umap file when it was last saved by the editor. | AssetRegistry/AssetData.h | |
bool HasVirtualizedPayloads() |
Whether the package contains virtualized payloads or not | AssetRegistry/AssetData.h | |
bool IsLicenseeVersion() |
Whether the package was saved from a licensee executable, used to tell whether non-matching FileVersionLicenseeUE requires a resave | AssetRegistry/AssetData.h | |
bool IsReadOnly() |
Whether the package is readonly or not | AssetRegistry/AssetData.h | |
void NetworkWrite
(
FCbWriter& Writer |
Note: these functions should only be used for live communication between processes running the same version of the engine. | AssetRegistry/AssetData.h | |
void SerializeForCache
(
FArchive& Ar |
Serialize as part of the registry cache. | AssetRegistry/AssetData.h | |
void SerializeForCacheOldVersion
(
FArchive& Ar, |
AssetRegistry/AssetData.h | ||
void SetCustomVersions
(
TConstArrayView< FCustomVersion > InCustomVersions |
AssetRegistry/AssetData.h | ||
void SetCustomVersions
(
TConstArrayView< UE::AssetRegistry::FPackageCustomVersion > InCustomVersions |
AssetRegistry/AssetData.h | ||
void SetCustomVersions
(
TArray< UE::AssetRegistry::FPackageCustomVersion >&& InCustomVersions |
AssetRegistry/AssetData.h | ||
void SetHasVirtualizedPayloads
(
bool bValue |
AssetRegistry/AssetData.h | ||
void SetIsLicenseeVersion
(
bool bValue |
AssetRegistry/AssetData.h | ||
void SetIsReadOnly
(
bool bValue |
AssetRegistry/AssetData.h | ||
void SetPackageLocation
(
FPackageName::EPackageLocationFilter PackageLocation |
AssetRegistry/AssetData.h | ||
void SetPackageSavedHash
(
const FIoHash& InHash |
AssetRegistry/AssetData.h | ||
bool TryNetworkRead
(
FCbFieldView Field |
AssetRegistry/AssetData.h |