Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject > API/Runtime/CoreUObject/UObject/LoadPackageAsync
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include | #include "UObject/UObjectGlobals.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Serialization/AsyncPackageLoader.cpp |
int32 LoadPackageAsync
(
const FString & InName,
FLoadPackageAsyncOptionalParams InOptionalParams
)
Remarks
Asynchronously load a package and all contained objects that match context flags. Non-blocking. Use this version when you need to load a package with default behavior from a packagename/filename, and need to be notified when it is loaded. Unique ID associated with this load request (the same package can be associated with multiple IDs).
Parameters
| Name | Description |
|---|---|
| InName | PackageName or LocalFilePath of package to load. Must be a mounted name/path. The package is created if it does not already exist. |
| InOptionalParams | Optional parameters. |