Files
UnrealEngine/Engine/Plugins/Editor/AssetSearch/Source/Public/IAssetIndexer.h
2025-05-18 13:04:45 +08:00

27 lines
732 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Containers/Array.h"
class UObject;
class FSearchSerializer;
class ASSETSEARCH_API IAssetIndexer
{
public:
virtual ~IAssetIndexer() = 0;
virtual FString GetName() const = 0;
virtual int32 GetVersion() const = 0;
virtual void IndexAsset(const UObject* InAssetObject, FSearchSerializer& Serializer) const = 0;
/**
* If your package contains a nested asset, such as the Blueprint stored in Level/World packages,
* it would return UBlueprint's class in the array. This is only important if you use IndexNestedAsset.
*/
virtual void GetNestedAssetTypes(TArray<UClass*>& OutTypes) const { }
};
inline IAssetIndexer::~IAssetIndexer() = default;