UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FAsyncPackageDesc Struct Reference

#include <AsyncPackage.h>

Public Member Functions

const FLinkerInstancingContextGetInstancingContext () const
 
void SetInstancingContext (FLinkerInstancingContext InInstancingContext)
 
 FAsyncPackageDesc (int32 InRequestID, const FName &InName, const FPackagePath &InPackagePath, TUniquePtr< FLoadPackageAsyncDelegate > &&InCompletionDelegate=TUniquePtr< FLoadPackageAsyncDelegate >(), EPackageFlags InPackageFlags=PKG_None, int32 InPIEInstanceID=INDEX_NONE, TAsyncLoadPriority InPriority=0)
 
 FAsyncPackageDesc (const FAsyncPackageDesc &OldPackage)
 
 FAsyncPackageDesc (const FAsyncPackageDesc &OldPackage, TUniquePtr< FLoadPackageAsyncDelegate > &&InPackageLoadedDelegate)
 

Public Attributes

int32 RequestID
 
FName Name
 
FPackagePath PackagePath
 
TUniquePtr< FLoadPackageAsyncDelegatePackageLoadedDelegate
 
EPackageFlags PackageFlags
 
TAsyncLoadPriority Priority
 
int32 PIEInstanceID
 
FLinkerInstancingContext InstancingContext
 

Constructor & Destructor Documentation

◆ FAsyncPackageDesc() [1/3]

FAsyncPackageDesc::FAsyncPackageDesc ( int32  InRequestID,
const FName InName,
const FPackagePath InPackagePath,
TUniquePtr< FLoadPackageAsyncDelegate > &&  InCompletionDelegate = TUniquePtr<FLoadPackageAsyncDelegate>(),
EPackageFlags  InPackageFlags = PKG_None,
int32  InPIEInstanceID = INDEX_NONE,
TAsyncLoadPriority  InPriority = 0 
)
inline

◆ FAsyncPackageDesc() [2/3]

FAsyncPackageDesc::FAsyncPackageDesc ( const FAsyncPackageDesc OldPackage)
inline

This constructor does not modify the package loaded delegate as this is not safe outside the game thread

◆ FAsyncPackageDesc() [3/3]

FAsyncPackageDesc::FAsyncPackageDesc ( const FAsyncPackageDesc OldPackage,
TUniquePtr< FLoadPackageAsyncDelegate > &&  InPackageLoadedDelegate 
)
inline

This constructor will explicitly copy the package loaded delegate and invalidate the old one

Member Function Documentation

◆ GetInstancingContext()

const FLinkerInstancingContext * FAsyncPackageDesc::GetInstancingContext ( ) const
inline

◆ SetInstancingContext()

void FAsyncPackageDesc::SetInstancingContext ( FLinkerInstancingContext  InInstancingContext)
inline

Member Data Documentation

◆ InstancingContext

FLinkerInstancingContext FAsyncPackageDesc::InstancingContext

Instancing context, maps original package to their instanced counterpart, used to remap imports.

◆ Name

FName FAsyncPackageDesc::Name

Name of the UPackage to create.

◆ PackageFlags

EPackageFlags FAsyncPackageDesc::PackageFlags

The flags that should be applied to the package

◆ PackageLoadedDelegate

TUniquePtr<FLoadPackageAsyncDelegate> FAsyncPackageDesc::PackageLoadedDelegate

Delegate called on completion of loading. This delegate can only be created and consumed on the game thread

◆ PackagePath

FPackagePath FAsyncPackageDesc::PackagePath

PackagePath of the package to load.

◆ PIEInstanceID

int32 FAsyncPackageDesc::PIEInstanceID

PIE instance ID this package belongs to, INDEX_NONE otherwise

◆ Priority

TAsyncLoadPriority FAsyncPackageDesc::Priority

Package loading priority. Higher number is higher priority.

◆ RequestID

int32 FAsyncPackageDesc::RequestID

Handle for the caller


The documentation for this struct was generated from the following file: