Navigation
API > API/Plugins > API/Plugins/USDClasses > API/Plugins/USDClasses/UUsdAssetCache3
Syntax
UPROPERTY (EditAnywhere, BlueprintReadWrite, Category="Cleanup")
bool bCleanUpUnreferencedAssets
Remarks
If this is true, every time a UsdStageActor using this asset cache closes a stage or swaps asset caches it will attempt to call DeleteUnreferencedAssets, potentially dropping any unreferenced asset, due to this operation or previous ones.
Enable this if you want your AssetDirectory folder to be automatically cleaned up as stages close, and don't plan on keeping other external references to those assets.
Note: Some asset types may have complicated setups, and may end up with references from other properties, actors and components for some time (e.g. due to a component in a transient package or undo/redo buffer). This means any automatically cleanup may not manage to clean up all untracked assets. Subsequent cleanups should eventually collect all assets, however.
WARNING: This will clear the undo buffer (i.e. transaction history) and run garbage collection after any cleanup operation!