Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/Serialization > API/Runtime/CoreUObject/Serialization/IAsyncPackageLoader
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/Serialization/AsyncPackageLoader.h |
| Include | #include "Serialization/AsyncPackageLoader.h" |
int32 LoadPackage
&40;
const FPackagePath & PackagePath,
FName CustomPackageName,
FLoadPackageAsyncDelegate InCompletionDelegate,
EPackageFlags InPackageFlags,
int32 InPIEInstanceID,
int32 InPackagePriority,
const FLinkerInstancingContext &42; InInstancingContext,
uint32 InLoadFlags
&41;
Remarks
Asynchronously load a package. Unique ID associated with this load request (the same package can be associated with multiple IDs).
Parameters
| Name | Description |
|---|---|
| PackagePath | PackagePath to load. Must be a mounted path. The package is created if it does not already exist. |
| CustomPackageName | If not none, this is the name of the package to load into (and create if not yet existing). If none, the name is take from PackagePath. |
| InCompletionDelegate | Delegate to be invoked when the packages has finished streaming |
| InPackageFlags | Package flags used to construct loaded package in memory |
| InPIEInstanceID | Play in Editor instance ID |
| InPackagePriority | Loading priority |
| InstancingContext | Additional context to map object names to their instanced counterpart when loading an instanced package |
| LoadFlags | Flags controlling loading behavior, from the ELoadFlags enum |