// Copyright Epic Games, Inc. All Rights Reserved. #include "GenericObjectIndexer.h" #include "Utility/IndexerUtilities.h" #include "SearchSerializer.h" enum class EGenericObjectIndexerVersion { Empty, Initial, // ------------------------------------------------------ VersionPlusOne, LatestVersion = VersionPlusOne - 1 }; int32 FGenericObjectIndexer::GetVersion() const { return (int32)EGenericObjectIndexerVersion::LatestVersion; } void FGenericObjectIndexer::IndexAsset(const UObject* InAssetObject, FSearchSerializer& Serializer) const { Serializer.BeginIndexingObject(InAssetObject, TEXT("$self")); FIndexerUtilities::IterateIndexableProperties(InAssetObject, [&Serializer](const FProperty* Property, const FString& Value) { Serializer.IndexProperty(Property, Value); }); Serializer.EndIndexingObject(); }