FAssetRegistryState::InitializeFromExistingAndPrune

Initializes a cache from an existing using a set of filters.

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 InitializeFromExistingAndPrune
(
    const FAssetRegistryState & ExistingState,
    const TSet< FName > & RequiredPackages,
    const TSet< FName > & RemovePackages,
    const TSet< int32 > ChunksToKeep,
    const FAssetRegistrySerializationOptions & Options
)

Remarks

Initializes a cache from an existing using a set of filters. This is more efficient than calling InitalizeFromExisting and then PruneAssetData.

Parameters

Parameter

Description

ExistingState

State to use initialize from

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