RealDocs

UAssetManager::CallOrRegister_OnCompletedInitialScan

function Engine Since unknown
#include "Engine/AssetManager.h"
Access: public Specifiers: static

Description

Registers a delegate to run once the AssetManager's initial startup scan of all primary asset types has finished, invoking it immediately if the scan already completed.

Caveats & Gotchas

  • If the initial scan already completed before this call, the delegate fires synchronously inside the call itself rather than being deferred to a later tick.
  • This is a one-shot registration, not a general multicast subscription — there is no matching unregister function.

Signature

static ENGINE_API void CallOrRegister_OnCompletedInitialScan(FSimpleMulticastDelegate::FDelegate&& Delegate);

Parameters

Name Type Description Default
Delegate FSimpleMulticastDelegate::FDelegate&& Delegate to invoke once the initial primary asset scan has completed.

Return Type

void

Example

Deferring setup until the initial scan finishes C++
UAssetManager::CallOrRegister_OnCompletedInitialScan(FSimpleMulticastDelegate::FDelegate::CreateLambda([]()
{
	UE_LOG(LogTemp, Log, TEXT("Primary asset directory is ready"));
}));

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.