IAsyncPackageLoader

Asynchronous package loader interface.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/Serialization/AsyncPackageLoader.h

Include

#include "Serialization/AsyncPackageLoader.h"

Syntax

class IAsyncPackageLoader

Remarks

Asynchronous package loader interface.

Destructors

Name Description

Public function Virtual

~IAsyncPackageLoader()

Functions

Name Description

Public function

void

 

CancelLoading()

Cancels streaming.

Called from Game Thread.

Public function

void

 

FireCompletedCompiledInImport

(
    void* AsyncPackage,
    FPackageIndex Import
)

Public function

void

 

FlushLoading

(
    int32 PackageId
)

Flush pending loading request(s).

Called from Game Thread.

Public function

float

 

GetAsyncLoadPercentage

(
    const FName& PackageName
)

[GAME THREAD] Gets the load percentage of the specified package

Protected function Static

int32

 

GetNextRequestId()

Public function

int32

 

GetNumAsyncPackages()

Returns the number of loading packages.

Public function

int32

 

GetNumQueuedPackages()

Returns the number of queued packages.

Public function

void

 

InitializeLoading()

Initialize loading.

Public function

bool

 

IsAsyncLoadingPackages()

Returns whether packages are currently being loaded on a background thread.

Public function

bool

 

IsAsyncLoadingSuspended()

Returns whether the package loader is suspended or not.

Public function

bool

 

IsInAsyncLoadThread()

Returns whether in package loader background thread or not.

Public function

bool

 

IsMultithreaded()

Returns whether loading packages with multiple threads.

Public function

int32

 

LoadPackage

(
    const FString& InPackageName,
    const FGuid* InGuid,
    const TCHAR* InPackageToLoadFr...,
    FLoadPackageAsyncDelegate InComplet...,
    EPackageFlags InPackageFlags,
    int32 InPIEInstanceID,
    int32 InPackagePriority,
    const FLinkerInstancingContext*...
)

Asynchronously load a package.

Public function

void

 

NotifyConstructedDuringAsyncLoading

(
    UObject* Object,
    bool bSubObject
)

Public function

void

 

NotifyUnreachableObjects

(
    const TArrayView< FUObjectItem*...
)

Public function

EAsyncPackag...

 

ProcessLoading

(
    bool bUseTimeLimit,
    bool bUseFullTimeLimit,
    float TimeLimit
)

Process all currently loading package requests.

Public function

EAsyncPackag...

 

ProcessLoadingUntilComplete

(
    TFunctionRef< bool()> CompletionPre...,
    float TimeLimit
)

Process all loading package requests until completion predicate is satisfied.

Public function

void

 

ResumeLoading()

Resumes async loading thread

Called from Game Thread.

Public function

void

 

ShutdownLoading()

Shut down loading.

Public function

void

 

StartThread()

Public function

void

 

SuspendLoading()

Suspends async loading thread

Called from Game Thread.

Constants

Name

Description

NextPackageRequestId

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss