FAssetRegistryState::PruneAssetData

Prunes an asset cache, this removes asset data, nodes, and package data that isn't needed.

Windows
MacOS
Linux

References

Module

AssetRegistry

Header

/Engine/Source/Runtime/AssetRegistry/Public/AssetRegistryState.h

Include

#include "AssetRegistryState.h"

Source

/Engine/Source/Runtime/AssetRegistry/Private/AssetRegistryState.cpp

Syntax

void PruneAssetData
(
    const TSet< FName > & RequiredPackages,
    const TSet< FName > & RemovePackages,
    const FAssetRegistrySerializationOptions & Options
)

Remarks

Prunes an asset cache, this removes asset data, nodes, and package data that isn't needed.

Parameters

Parameter

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss