RealDocs

UAssetManager::InvalidatePrimaryAssetDirectory

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

Description

Marks the cached primary asset directory as needing a rescan, without rescanning immediately.

Caveats & Gotchas

  • Only flags the directory as stale — it doesn't rescan right away, so calls to GetPrimaryAssetData immediately afterward may still return stale results until a rescan actually happens.
  • Mostly useful in editor tooling that mutates assets outside the normal asset registry update flow.

Signature

virtual void InvalidatePrimaryAssetDirectory()

Return Type

void

Example

Invalidate after external asset changes C++
UAssetManager::Get().InvalidatePrimaryAssetDirectory();

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.