UAssetManager::InvalidatePrimaryAssetDirectory
#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(); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?