Asynchronous package loader interface.
更多...
#include <AsyncPackageLoader.h>
|
| virtual void | CancelLoading ()=0 |
| | Cancels streaming. 更多...
|
| |
| virtual void | FlushLoading (int32 PackageId)=0 |
| | Flush pending loading request(s). 更多...
|
| |
| virtual float | GetAsyncLoadPercentage (const FName &PackageName)=0 |
| | [GAME THREAD] Gets the load percentage of the specified package 更多...
|
| |
|
virtual int32 | GetNumAsyncPackages ()=0 |
| | Returns the number of loading packages.
|
| |
|
virtual int32 | GetNumQueuedPackages ()=0 |
| | Returns the number of queued packages.
|
| |
|
virtual void | InitializeLoading ()=0 |
| | Initialize loading.
|
| |
| virtual bool | IsAsyncLoadingPackages ()=0 |
| | Returns whether packages are currently being loaded on a background thread. 更多...
|
| |
|
virtual bool | IsAsyncLoadingSuspended ()=0 |
| | Returns whether the package loader is suspended or not.
|
| |
|
virtual bool | IsInAsyncLoadThread ()=0 |
| | Returns whether in package loader background thread or not.
|
| |
| virtual bool | IsMultithreaded ()=0 |
| | Returns whether loading packages with multiple threads. 更多...
|
| |
| virtual int32 | LoadPackage (const FString &InPackageName, const FGuid *InGuid, const TCHAR *InPackageToLoadFrom, FLoadPackageAsyncDelegate InCompletionDelegate, EPackageFlags InPackageFlags, int32 InPIEInstanceID, int32 InPackagePriority, const FLinkerInstancingContext *InstancingContext)=0 |
| | Asynchronously load a package. 更多...
|
| |
| virtual EAsyncPackageState::Type | ProcessLoading (bool bUseTimeLimit, bool bUseFullTimeLimit, float TimeLimit)=0 |
| | Process all currently loading package requests. 更多...
|
| |
| virtual EAsyncPackageState::Type | ProcessLoadingUntilComplete (TFunctionRef< bool()> CompletionPredicate, float TimeLimit)=0 |
| | Process all loading package requests until completion predicate is satisfied. 更多...
|
| |
| virtual void | ResumeLoading ()=0 |
| | Resumes async loading thread 更多...
|
| |
|
virtual void | ShutdownLoading ()=0 |
| | Shut down loading.
|
| |
| virtual void | SuspendLoading ()=0 |
| | Suspends async loading thread 更多...
|
| |
Asynchronous package loader interface.
◆ CancelLoading()
| virtual void IAsyncPackageLoader::CancelLoading |
( |
| ) |
|
|
pure virtual |
Cancels streaming.
Note: Called from Game Thread.
◆ FlushLoading()
| virtual void IAsyncPackageLoader::FlushLoading |
( |
int32 |
PackageId | ) |
|
|
pure virtual |
Flush pending loading request(s).
Note: Called from Game Thread.
◆ GetAsyncLoadPercentage()
| virtual float IAsyncPackageLoader::GetAsyncLoadPercentage |
( |
const FName & |
PackageName | ) |
|
|
pure virtual |
[GAME THREAD] Gets the load percentage of the specified package
- 参数
-
| PackageName | Name of the package to return async load percentage for |
- 返回
- Percentage (0-100) of the async package load or -1 of package has not been found
◆ IsAsyncLoadingPackages()
| virtual bool IAsyncPackageLoader::IsAsyncLoadingPackages |
( |
| ) |
|
|
pure virtual |
Returns whether packages are currently being loaded on a background thread.
Note: GIsInitialLoad guards the package loader from creating background threads too early.
◆ IsMultithreaded()
| virtual bool IAsyncPackageLoader::IsMultithreaded |
( |
| ) |
|
|
pure virtual |
Returns whether loading packages with multiple threads.
Note: GIsInitialLoad guards the package loader from creating background threads too early.
◆ LoadPackage()
| virtual int32 IAsyncPackageLoader::LoadPackage |
( |
const FString & |
InPackageName, |
|
|
const FGuid * |
InGuid, |
|
|
const TCHAR * |
InPackageToLoadFrom, |
|
|
FLoadPackageAsyncDelegate |
InCompletionDelegate, |
|
|
EPackageFlags |
InPackageFlags, |
|
|
int32 |
InPIEInstanceID, |
|
|
int32 |
InPackagePriority, |
|
|
const FLinkerInstancingContext * |
InstancingContext |
|
) |
| |
|
pure virtual |
Asynchronously load a package.
- 参数
-
| InName | Name of package to load |
| InGuid | GUID of the package to load, or nullptr for "don't care" |
| InPackageToLoadFrom | If non-null, this is another package name. We load from this package name, into a (probably new) package named InName |
| 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 |
- 返回
- Unique ID associated with this load request (the same package can be associated with multiple IDs).
◆ ProcessLoading()
| virtual EAsyncPackageState::Type IAsyncPackageLoader::ProcessLoading |
( |
bool |
bUseTimeLimit, |
|
|
bool |
bUseFullTimeLimit, |
|
|
float |
TimeLimit |
|
) |
| |
|
pure virtual |
Process all currently loading package requests.
- 参数
-
| bUseTimeLimit | Whether to use time limit or not |
| bUseFullTimeLimit |
|
| TimeLimit | Time limit |
◆ ProcessLoadingUntilComplete()
Process all loading package requests until completion predicate is satisfied.
- 参数
-
| CompletionPredicate | Completion predicate |
| TimeLimit | Time limit |
◆ ResumeLoading()
| virtual void IAsyncPackageLoader::ResumeLoading |
( |
| ) |
|
|
pure virtual |
Resumes async loading thread
Note: Called from Game Thread.
◆ SuspendLoading()
| virtual void IAsyncPackageLoader::SuspendLoading |
( |
| ) |
|
|
pure virtual |
Suspends async loading thread
Note: Called from Game Thread.
该类的文档由以下文件生成: