ProcessAsyncLoadingUntilComplete

Blocks and runs ProcessAsyncLoading until the time limit is hit, the completion predicate returns true, or all async loading is done

Choose your operating system:

Windows

macOS

Linux

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

Syntax

EAsyncPackageState::Type ProcessAsyncLoadingUntilComplete
(
    TFunctionRef< bool()> CompletionPredicate,
    double TimeLimit
)

Remarks

Blocks and runs ProcessAsyncLoading until the time limit is hit, the completion predicate returns true, or all async loading is done

Returns

The minimum state of any of the queued packages.

Parameters

Parameter

Description

CompletionPredicate

If this returns true, stop loading. This is called periodically as long as loading continues

TimeLimit

Hard time limit. 0 means infinite length