Navigation
API > API/Runtime > API/Runtime/CoreUObject
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 LoadPackageAsync
(
const FPackagePath& InPackagePath, |
Asynchronously load a package and all contained objects that match context flags. | UObject/UObjectGlobals.h | |
int32 LoadPackageAsync
(
const FString& InName, |
Asynchronously load a package and all contained objects that match context flags. | UObject/UObjectGlobals.h | |
int32 LoadPackageAsync
(
const FString& InName, |
Asynchronously load a package and all contained objects that match context flags. | UObject/UObjectGlobals.h | |
int32 LoadPackageAsync
(
const FString& InName, |
Asynchronously load a package and all contained objects that match context flags. | UObject/UObjectGlobals.h | |
int32 LoadPackageAsync
(
const FPackagePath& InPackagePath, |
Asynchronously load a package and all contained objects that match context flags. | UObject/UObjectGlobals.h |
LoadPackageAsync(const FPackagePath &, FLoadPackageAsyncOptionalParams)
Description
Asynchronously load a package and all contained objects that match context flags. Non-blocking. Use this version to specify the PackagePath rather than having the other versions internally convert the InName to a PackagePath by searching the current package mount points. Use this version if you need to specify a packagename that is different from the packagename on disk; this is useful when loading multiple copies of the same package.
| Name | LoadPackageAsync |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include Path | #include "UObject/UObjectGlobals.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Serialization/AsyncPackageLoader.cpp |
int32 LoadPackageAsync
(
const FPackagePath & InPackagePath,
FLoadPackageAsyncOptionalParams InOptionalParams
)
Unique ID associated with this load request (the same package can be associated with multiple IDs).
Parameters
| Name | Remarks |
|---|---|
| InPackagePath | PackagePath to load. Must be a mounted path. The package is created if it does not already exist. |
| InOptionalParams | Optional parameters. |
LoadPackageAsync(const FString &, const FGuid *)
Description
Asynchronously load a package and all contained objects that match context flags. Non-blocking. Use this version for convenience when you just need to load a package without notification and with default behavior from a packagename/filename.
| Name | LoadPackageAsync |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include Path | #include "UObject/UObjectGlobals.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Serialization/AsyncPackageLoader.cpp |
int32 LoadPackageAsync
(
const FString & InName,
const FGuid * InGuid
)
Unique ID associated with this load request (the same package can be associated with multiple IDs).
Parameters
| Name | Remarks |
|---|---|
| InName | PackageName or LocalFilePath of package to load. Must be a mounted name/path. The package is created if it does not already exist. |
| InGuid | GUID of the package to load, or nullptr for "don't care" |
LoadPackageAsync(const FString &, FLoadPackageAsyncOptionalParams)
Description
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.
| Name | LoadPackageAsync |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include Path | #include "UObject/UObjectGlobals.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Serialization/AsyncPackageLoader.cpp |
int32 LoadPackageAsync
(
const FString & InName,
FLoadPackageAsyncOptionalParams InOptionalParams
)
Unique ID associated with this load request (the same package can be associated with multiple IDs).
Parameters
| Name | Remarks |
|---|---|
| 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. |
LoadPackageAsync(const FString &, FLoadPackageAsyncDelegate, TAsyncLoadPriority, EPackageFlags, int32)
Description
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.
| Name | LoadPackageAsync |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include Path | #include "UObject/UObjectGlobals.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Serialization/AsyncPackageLoader.cpp |
int32 LoadPackageAsync
(
const FString & InName,
FLoadPackageAsyncDelegate InCompletionDelegate,
TAsyncLoadPriority InPackagePriority,
EPackageFlags InPackageFlags,
int32 InPIEInstanceID
)
Unique ID associated with this load request (the same package can be associated with multiple IDs).
Parameters
| Name | Remarks |
|---|---|
| InName | PackageName or LocalFilePath of package to load. Must be a mounted name/path. The package is created if it does not already exist. |
| InCompletionDelegate | Delegate to be invoked when the packages has finished streaming |
| InPackagePriority | Loading priority |
| InPackageFlags | Package flags used to construct loaded package in memory |
| InPIEInstanceID | Play in Editor instance ID |
LoadPackageAsync(const FPackagePath &, FName, FLoadPackageAsyncDelegate, EPackageFlags, int32, TAsyncLoadPriority, const FLinkerInstancingContext *, uint32)
Description
Asynchronously load a package and all contained objects that match context flags. Non-blocking. Use this version to specify the PackagePath rather than having the other versions internally convert the InName to a PackagePath by searching the current package mount points. Use this version if you need to specify a packagename that is different from the packagename on disk; this is useful when loading multiple copies of the same package.
| Name | LoadPackageAsync |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include Path | #include "UObject/UObjectGlobals.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Serialization/AsyncPackageLoader.cpp |
int32 LoadPackageAsync
(
const FPackagePath & InPackagePath,
FName InPackageNameToCreate,
FLoadPackageAsyncDelegate InCompletionDelegate,
EPackageFlags InPackageFlags,
int32 InPIEInstanceID,
TAsyncLoadPriority InPackagePriority,
const FLinkerInstancingContext * InstancingContext,
uint32 LoadFlags
)
Unique ID associated with this load request (the same package can be associated with multiple IDs).
Parameters
| Name | Remarks |
|---|---|
| InPackagePath | PackagePath to load. Must be a mounted path. The package is created if it does not already exist. |
| InPackageNameToCreate | If not none, this is the name of the package to load the bytes on disk into (and create if not yet existing). If none, the name is taken 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 |