Navigation
API > API/Runtime > API/Runtime/AssetRegistry > API/Runtime/AssetRegistry/AssetRegistry > API/Runtime/AssetRegistry/AssetRegistry/FAssetRegistryState > API/Runtime/AssetRegistry/AssetRegistry/FAssetRegistryState/PruneAssetData
References
Module | AssetRegistry |
Header | /Engine/Source/Runtime/AssetRegistry/Public/AssetRegistry/AssetRegistryState.h |
Include | #include "AssetRegistry/AssetRegistryState.h" |
Source | /Engine/Source/Runtime/AssetRegistry/Private/AssetRegistryState.cpp |
void PruneAssetData
&40;
const TSet< FName > & RequiredPackages,
const TSet< FName > & RemovePackages,
const FAssetRegistrySerializationOptions & Options
&41;
Remarks
Prunes an asset cache, this removes asset data, nodes, and package data that isn't needed.
Parameters
Name | Description |
---|---|
RequiredPackages | If set, only these packages will be maintained. If empty it will keep all unless filtered by other parameters |
RemovePackages | These packages will be removed from the current set |
ChunksToKeep | The list of chunks that are allowed to remain. Any assets in other chunks are pruned. If empty, all assets are kept regardless of chunk |
Options | Serialization options to read filter info from |