Navigation
API > API/Runtime > API/Runtime/AssetRegistry > API/Runtime/AssetRegistry/FAssetRegistryState
Description
Similar to InitializeFromExisting, but it moves the allocations over from InState into *this rather than copying them. It also shares the InState's existing FStore (if any) rather than creating a new one. This function is used for faster consumption of states loaded internally by the AssetRegistry. This function is less general than InitializeFromExisting to reduce complexity; it only supports EInitializationMode::OnlyUpdateNew and does not support filter flags on the input Options; all instances of FAssetDatas, FAssetPackageDatas, and FDependsNodes are kept The InState is reset to empty by this function.
| Name | ConsumeExisting |
| Type | function |
| Header File | /Engine/Source/Runtime/AssetRegistry/Public/AssetRegistry/AssetRegistryState.h |
| Include Path | #include "AssetRegistry/AssetRegistryState.h" |
| Source | /Engine/Source/Runtime/AssetRegistry/Private/AssetRegistryState.cpp |
void ConsumeExisting
(
FAssetRegistryState && Existing,
const FAssetRegistrySerializationOptions & Options,
FAssetRegistryAppendResult * OutAppendResult
)