UAssetManager::RemovePrimaryAssetType
#include "Engine/AssetManager.h"
Access: public
Specifiers: virtual
Description
Removes an entire primary asset type and all of its scanned assets from the directory.
Caveats & Gotchas
- • Removes every asset scanned under that type, not just ones matching specific paths — use RemoveScanPathsForPrimaryAssets if you only want to remove a subset.
- • Any code still holding streamable handles or PrimaryAssetIds for the removed type's assets will find lookups (GetPrimaryAssetPath, GetPrimaryAssetObject, etc.) silently fail afterward.
Signature
virtual void RemovePrimaryAssetType(FPrimaryAssetType PrimaryAssetType); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| PrimaryAssetType | FPrimaryAssetType | Type whose directory entries should be removed. | — |
Return Type
void Example
Removing a whole asset type C++
UAssetManager::Get().RemovePrimaryAssetType(FPrimaryAssetType("Item")); Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?