![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <AsyncPackageLoader.h>
Inheritance diagram for IAsyncPackageLoader:Static Protected Member Functions | |
| static int32 | GetNextRequestId () |
Asynchronous package loader interface.
|
inlinevirtual |
Cancels streaming.
Note: Called from Game Thread.
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
|
pure virtual |
Flush pending loading request(s).
Note: Called from Game Thread.
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
[GAME THREAD] Gets the load percentage of the specified package
| PackageName | Name of the package to return async load percentage for |
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
|
pure virtual |
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
|
staticprotected |
Returns the number of loading packages.
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
Returns the number of queued packages.
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
Initialize loading.
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
Returns whether packages are currently being loaded on a background thread. Note: GIsInitialLoad guards the package loader from creating background threads too early.
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
Returns whether the package loader is suspended or not.
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
Returns whether in package loader background thread or not.
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
Returns whether loading packages with multiple threads. Note: GIsInitialLoad guards the package loader from creating background threads too early.
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
|
inlinevirtual |
Asynchronously load a package.
| 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. |
Reimplemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
|
pure virtual |
Asynchronously load a package.
| 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 |
Implemented in FAsyncLoadingThread, FAsyncLoadingThread2, and FTransactionallySafeAsyncPackageLoader.
|
pure virtual |
Implemented in FAsyncLoadingThread, FTransactionallySafeAsyncPackageLoader, and FAsyncLoadingThread2.
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
|
pure virtual |
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
|
inlinevirtual |
Called for built in packages (currently only VVMIntrinsics.cpp) to allow them to be imported.
Reimplemented in FAsyncLoadingThread2, and FTransactionallySafeAsyncPackageLoader.
|
pure virtual |
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
|
pure virtual |
Process all currently loading package requests.
| bUseTimeLimit | Whether to use time limit or not |
| bUseFullTimeLimit | |
| TimeLimit | Time limit |
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
|
pure virtual |
Process all loading package requests until completion predicate is satisfied.
| CompletionPredicate | Completion predicate |
| TimeLimit | Time limit |
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
Resumes async loading thread
Note: Called from Game Thread.
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
|
pure virtual |
Implemented in FAsyncLoadingThread, FAsyncLoadingThread2, and FTransactionallySafeAsyncPackageLoader.
Shut down loading.
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.
Suspends async loading thread
Note: Called from Game Thread.
Implemented in FAsyncLoadingThread2, FAsyncLoadingThread, and FTransactionallySafeAsyncPackageLoader.