UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
InterchangeImportCommon.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "Containers/Array.h"
6#include "CoreMinimal.h"
7#include "CoreTypes.h"
9
10#define UE_API INTERCHANGEENGINE_API
11
21class UObject;
22template <typename FuncType> class TFunctionRef;
23
24namespace UE::Interchange
25{
31 {
32 public:
33
52
59
67
68#if WITH_EDITORONLY_DATA
70 {
71 // Allow the factory to provide is own list of source files.
73
77 , FString InNodeUniqueID
81 };
82
89
94 static UE_API bool GetSourceFilenames(const UAssetImportData* AssetImportData, TArray<FString>& OutSourceFilenames);
95
99 static UE_API void BackupSourceData(const UAssetImportData* AssetImportData);
100
104 static UE_API void ReinstateSourceData(UAssetImportData* AssetImportData);
105
109 static UE_API void ClearBackupSourceData(const UAssetImportData* AssetImportData);
110
114 static UE_API bool SetSourceFilename(UAssetImportData* AssetImportData, const FString& SourceFilename, int32 SourceIndex, const FString& SourceLabel = FString());
115
119 static UE_API bool SetReimportSourceIndex(const UObject* Object, UAssetImportData* AssetImportData, int32 SourceIndex);
120
121#endif // WITH_EDITORONLY_DATA
122
130
141 static UE_API UObject* GetObjectToReimport(UInterchangeFactoryBase* Factory, UObject* ReimportObject, const UInterchangeFactoryBaseNode& FactoryNode, const FString& PackageName, const FString& AssetName, const FString& SubPathString = FString());
142
152 static UE_API const UInterchangeFactoryBaseNode* GetFactoryNode(UObject* ReimportObject, const FString& PackageName, const FString& AssetName, const FString& SubPathString = FString());
153
171 static bool UE_API CanProceedWithFactoryNode(UInterchangeFactoryBaseNode& FactoryNode, UObject* ReimportObject, UObject* ObjectToReimport, const FString& PackageName, const FString& AssetName, const FString& SubPathString = FString());
175 static UE_API UObject* AsyncFindObject(UInterchangeFactoryBaseNode* FactoryNode, const UClass* FactoryClass, UObject* Parent, const FString& AssetName);
176 };
177} //ns UE::Interchange
178
179#undef UE_API
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UE_API
Definition SColorGradingComponentViewer.h:12
Definition Array.h:670
Definition AssetRegistryState.h:50
Definition AssetImportData.h:72
Definition Class.h:3793
Definition InterchangeImportCommon.h:31
static UE_API UAssetImportData * UpdateImportAssetData(FUpdateImportAssetDataParameters &Parameters)
Definition InterchangeImportCommon.cpp:148
static UE_API const UInterchangeFactoryBaseNode * GetFactoryNode(UObject *ReimportObject, const FString &PackageName, const FString &AssetName, const FString &SubPathString=FString())
Definition InterchangeImportCommon.cpp:423
static UE_API UObject * GetObjectToReimport(UInterchangeFactoryBase *Factory, UObject *ReimportObject, const UInterchangeFactoryBaseNode &FactoryNode, const FString &PackageName, const FString &AssetName, const FString &SubPathString=FString())
Definition InterchangeImportCommon.cpp:403
static bool UE_API CanProceedWithFactoryNode(UInterchangeFactoryBaseNode &FactoryNode, UObject *ReimportObject, UObject *ObjectToReimport, const FString &PackageName, const FString &AssetName, const FString &SubPathString=FString())
Definition InterchangeImportCommon.cpp:435
static UE_API UObject * AsyncFindObject(UInterchangeFactoryBaseNode *FactoryNode, const UClass *FactoryClass, UObject *Parent, const FString &AssetName)
Definition InterchangeImportCommon.cpp:471
static UE_API void ApplyReimportStrategyToAsset(UObject *Asset, const UInterchangeFactoryBaseNode *PreviousAssetNode, const UInterchangeFactoryBaseNode *CurrentAssetNode, UInterchangeFactoryBaseNode *PipelineAssetNode)
Definition InterchangeImportCommon.cpp:347
Definition InterchangeAssetImportData.h:21
Definition InterchangeBaseNodeContainer.h:39
Definition InterchangeBaseNode.h:195
Definition InterchangeFactoryBaseNode.h:188
Definition InterchangeFactoryBase.h:68
Definition InterchangePipelineBase.h:217
Definition InterchangeSourceData.h:23
Definition InterchangeTranslatorBase.h:68
Definition Object.h:95
Definition InterchangeHelper.cpp:9
const UInterchangeSourceData * SourceData
Definition InterchangeImportCommon.h:38
UAssetImportData * AssetImportData
Definition InterchangeImportCommon.h:37
UObject * AssetImportDataOuter
Definition InterchangeImportCommon.h:36
const UInterchangeTranslatorBase * Translator
Definition InterchangeImportCommon.h:42
UInterchangeBaseNodeContainer * NodeContainer
Definition InterchangeImportCommon.h:40
const TArray< UObject * > Pipelines
Definition InterchangeImportCommon.h:41
FString NodeUniqueID
Definition InterchangeImportCommon.h:39