Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/IAsyncPackageLoader
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 LoadPackage
(
const FPackagePath& PackagePath, |
Asynchronously load a package. | Serialization/AsyncPackageLoader.h | |
int32 LoadPackage
(
const FPackagePath& PackagePath, |
Asynchronously load a package. | Serialization/AsyncPackageLoader.h |
LoadPackage(const FPackagePath &, FLoadPackageAsyncOptionalParams)
Description
Asynchronously load a package.
| Name | LoadPackage |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Serialization/AsyncPackageLoader.h |
| Include Path | #include "Serialization/AsyncPackageLoader.h" |
virtual int32 LoadPackage
(
const FPackagePath & PackagePath,
FLoadPackageAsyncOptionalParams OptionalParams
)
Unique ID associated with this load request (the same package can be associated with multiple IDs).
Parameters
| Name | Remarks |
|---|---|
| PackagePath | PackagePath to load. Must be a mounted path. The package is created if it does not already exist. |
| OptionalParams | Struct containing all the parameters required to load the package. |
LoadPackage(const FPackagePath &, FName, FLoadPackageAsyncDelegate, EPackageFlags, int32, int32, const FLinkerInstancingContext *, uint32)
Description
Asynchronously load a package.
| Name | LoadPackage |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Serialization/AsyncPackageLoader.h |
| Include Path | #include "Serialization/AsyncPackageLoader.h" |
int32 LoadPackage
(
const FPackagePath & PackagePath,
FName CustomPackageName,
FLoadPackageAsyncDelegate InCompletionDelegate,
EPackageFlags InPackageFlags,
int32 InPIEInstanceID,
int32 InPackagePriority,
const FLinkerInstancingContext * InInstancingContext,
uint32 InLoadFlags
)
Unique ID associated with this load request (the same package can be associated with multiple IDs).
Parameters
| Name | Remarks |
|---|---|
| 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 |