![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <PackageFileSummary.h>
Friends | |
| COREUOBJECT_API FArchive & | operator<< (FArchive &Ar, FPackageFileSummary &Sum) |
| COREUOBJECT_API void | operator<< (FStructuredArchive::FSlot Slot, FPackageFileSummary &Sum) |
A "table of contents" for an Unreal package file. Stored at the top of the file.
| FPackageFileSummary::FPackageFileSummary | ( | ) |
Constructor
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the summary package flags.
|
inline |
Returns true if any of the package file versions are newer than currently supported by the running process
|
inline |
Returns true if any of the package file versions are older than the minimum supported versions
| bool FPackageFileSummary::IsFileVersionValid | ( | ) | const |
Returns false if the summary is unversioned and the current process does not support that. If this returns false and the summary was loaded from disk then the serialization of the summary was aborted early!
|
default |
|
default |
| void FPackageFileSummary::SetCustomVersionContainer | ( | const FCustomVersionContainer & | InContainer | ) |
|
inline |
| void FPackageFileSummary::SetFileVersions | ( | const int32 | EpicUE4, |
| const int32 | EpicUE5, | ||
| const int32 | LicenseeUE, | ||
| const bool | bInSaveUnversioned = false |
||
| ) |
Used to manually set the package file and licensee versions
Set the summary package flags while stripping out temporary flags (i.e. NewlyCreated, IsSaving)
Set both the package file versions and the licensee version to the most recent version numbers supported
|
friend |
I/O functions
|
friend |
The package file version number when this package was saved.
Lower 16 bits stores the UE3 engine version Upper 16 bits stores the UE licensee version For newer packages this is -7 -2 indicates presence of enum-based custom versions -3 indicates guid-based custom versions -4 indicates removal of the UE3 version. Packages saved with this ID cannot be loaded in older engine versions -5 indicates the replacement of writing out the "UE3 version" so older versions of engine can gracefully fail to open newer packages -6 indicates optimizations to how custom versions are being serialized -7 indicates the texture allocation info has been removed from the summary -8 indicates that the UE5 version has been added to the summary -9 indicates a contractual change in when early exits are required based on FileVersionTooNew. At or after this LegacyFileVersion, we support changing the PackageFileSummary serialization format for all bytes serialized after FileVersionLicensee, and that format change can be conditional on any of the versions parsed before that point. All packageloaders that understand the -9 legacyfileformat are required to early exit without further serialization at that point if FileVersionTooNew is true.
| int32 FPackageFileSummary::AssetRegistryDataOffset |
Location into the file on disk for the asset registry tag data
| int64 FPackageFileSummary::BulkDataStartOffset |
Offset to the location in the file where the bulkdata starts
| bool FPackageFileSummary::bUnversioned |
If true, this file will not be saved with version numbers or was saved without version numbers. In this case they are assumed to be the current version. This is only used for full cooks for distribution because it is hard to guarantee correctness
| int32 FPackageFileSummary::CellExportCount |
Number of cells contained in this package
| int32 FPackageFileSummary::CellExportOffset |
Location into the file on disk for the CellExportMap data
| int32 FPackageFileSummary::CellImportCount |
Number of cell imports contained in this package
| int32 FPackageFileSummary::CellImportOffset |
Location into the file on disk for the CellImportMap data
| FEngineVersion FPackageFileSummary::CompatibleWithEngineVersion |
Engine version this package is compatible with. Assets saved by Hotfix releases and engine versions that maintain binary compatibility will have a CompatibleWithEngineVersion.Patch that matches the original release (as opposed to SavedByEngineVersion which will have a patch version of the new release).
| uint32 FPackageFileSummary::CompressionFlags |
Flags used to compress the file on save and uncompress on load.
| int32 FPackageFileSummary::DataResourceOffset |
Location into the file of the data resource(s)
| int32 FPackageFileSummary::DependsOffset |
Location into the file on disk for the DependsMap data
| int32 FPackageFileSummary::ExportCount |
Number of exports contained in this package
| int32 FPackageFileSummary::ExportOffset |
Location into the file on disk for the ExportMap data
| int32 FPackageFileSummary::GatherableTextDataCount |
Number of gatherable text data items in this package
| int32 FPackageFileSummary::GatherableTextDataOffset |
Location into the file on disk for the gatherable text data items
| TArray<FGenerationInfo> FPackageFileSummary::Generations |
Data about previous versions of this package
| int32 FPackageFileSummary::ImportCount |
Number of imports contained in this package
| int32 FPackageFileSummary::ImportOffset |
Location into the file on disk for the ImportMap data
| int32 FPackageFileSummary::ImportTypeHierarchiesCount |
Number of import type hierarchy entries
| int32 FPackageFileSummary::ImportTypeHierarchiesOffset |
Location into the file on disk for the import type hierarchy map
| FString FPackageFileSummary::LocalizationId |
Localization ID of this package
| int32 FPackageFileSummary::MetaDataOffset |
Location into the file on disk for the MetaData data
| int32 FPackageFileSummary::NameCount |
Number of names used in this package
| int32 FPackageFileSummary::NameOffset |
Location into the file on disk for the name data
| int32 FPackageFileSummary::NamesReferencedFromExportDataCount |
Number of names that are referenced from serialized export data (sorted first in the name map)
| FString FPackageFileSummary::PackageName |
The package name the file was last saved with.
| uint32 FPackageFileSummary::PackageSource |
Value that is used to determine if the package was saved by Epic (or licensee) or by a modder, etc
| int64 FPackageFileSummary::PayloadTocOffset |
Location into the file on disk for the payload table of contents data
| int32 FPackageFileSummary::PreloadDependencyCount |
| int32 FPackageFileSummary::PreloadDependencyOffset |
Location into the file on disk for the preload dependency data
| FEngineVersion FPackageFileSummary::SavedByEngineVersion |
Engine version this package was saved with. This may differ from CompatibleWithEngineVersion for assets saved with a hotfix release.
| int32 FPackageFileSummary::SearchableNamesOffset |
Location into the file on disk for the SearchableNamesMap data
| int32 FPackageFileSummary::SoftObjectPathsCount |
Number of soft object paths references contained in this package
| int32 FPackageFileSummary::SoftObjectPathsOffset |
Location into the file on disk for the soft object paths reference list
| int32 FPackageFileSummary::SoftPackageReferencesCount |
Number of soft package references contained in this package
| int32 FPackageFileSummary::SoftPackageReferencesOffset |
Location into the file on disk for the soft package reference list
| int32 FPackageFileSummary::Tag |
Magic tag compared against PACKAGE_FILE_TAG to ensure that package is an Unreal package.
| int32 FPackageFileSummary::ThumbnailTableOffset |
Thumbnail table offset
| int32 FPackageFileSummary::TotalHeaderSize |
Total size of all information that needs to be read in to create a FLinkerLoad. This includes the package file summary, name table and import & export maps.
| int32 FPackageFileSummary::WorldTileInfoDataOffset |
Offset to the location in the file where the FWorldTileInfo data starts