RealDocs

UAssetManager::PopBulkScanning

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

Description

Ends a bulk scanning batch started with PushBulkScanning, running the deferred bookkeeping that was skipped during the batch.

Caveats & Gotchas

  • Must be called exactly once for every PushBulkScanning() — forgetting to call it leaves scan bookkeeping permanently deferred.
  • Only runs the deferred bookkeeping once the nested request count reaches zero, so an inner Pop in a nested pair does nothing observable.

Signature

void PopBulkScanning();

Return Type

void

Example

Ending a batch of scans C++
UAssetManager::Get().PushBulkScanning();
UAssetManager::Get().ScanPathsForPrimaryAssets(FPrimaryAssetType("Item"), { TEXT("/Game/Items") }, UItemDefinition::StaticClass(), false);
UAssetManager::Get().PopBulkScanning();
// Deferred directory bookkeeping runs here, after the matching Pop

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.