// Copyright Epic Games, Inc. All Rights Reserved. #include "InterchangeCardsPipeline.h" #include "CoreGlobals.h" #include "InterchangeSourceData.h" #include "Nodes/InterchangeBaseNodeContainer.h" #include UE_INLINE_GENERATED_CPP_BY_NAME(InterchangeCardsPipeline) void UInterchangeCardsPipeline::SetDisabledFactoryNodes(TArray FactoryNodeClasses) { FactoryNodeClassesToDisabled = FactoryNodeClasses; } void UInterchangeCardsPipeline::ExecutePipeline(UInterchangeBaseNodeContainer* BaseNodeContainer, const TArray& SourceDatas, const FString& ContentBasePath) { BaseNodeContainer->IterateNodesOfType([this](const FString& NodeUid, UInterchangeFactoryBaseNode* Node) { if (FactoryNodeClassesToDisabled.Contains(Node->GetClass())) { Node->SetEnabled(false); } }); }