Navigation
API > API/Plugins > API/Plugins/USDClasses > API/Plugins/USDClasses/UUsdAssetCache3
Description
Deletes all assets that:
- Are currently tracked by the asset cache;
- Are set as deletable;
- Are not used by other UObjects (by external assets, components, undo buffer, Python scripting variables, etc.).
- Have no referencers;
- Have not been saved to disk;
If bShowConfirmation is true, this will fallback to using engine code for deleting the assets, showing a confirmation dialog listing the assets that will be deleted. If false, it will silently try deleting the assets it can.
WARNING: This will clear the undo buffer (i.e. transaction history) and run garbage collection after deleting.
| Name | DeleteUnreferencedAssets |
| Type | function |
| Header File | /Engine/Plugins/Runtime/USDCore/Source/USDClasses/Public/USDAssetCache3.h |
| Include Path | #include "USDAssetCache3.h" |
| Source | /Engine/Plugins/Runtime/USDCore/Source/USDClasses/Private/USDAssetCache3.cpp |
UFUNCTION (BlueprintCallable, Category="Cleanup", Meta=(CallInEditor="true"))
void DeleteUnreferencedAssets
(
const bool bShowConfirmation
)