Navigation
API > API/Runtime > API/Runtime/InterchangeEngine
Inheritance Hierarchy
- UObject
- UInterchangeManager
References
| Module | InterchangeEngine |
| Header | /Engine/Source/Runtime/Interchange/Engine/Public/InterchangeManager.h |
| Include | #include "InterchangeManager.h" |
Syntax
UCLASS (Transient, BlueprintType, CustomConstructor, MinimalAPI)
class UInterchangeManager : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| FInterchangeOnAssetPostImport | OnAssetPostImport | ||
| FInterchangeOnAssetPostReimport | OnAssetPostReimport | ||
| FInterchangeOnBatchImportComplete | OnBatchImportComplete | ||
| FOnImportFinished | OnImportFinished | Fires when the last import process finishes. | |
| FOnImportStarted | OnImportStarted | Fires when the first import process starts. | |
| FSimpleMulticastDelegate | OnPreDestroyInterchangeManager | Called when before the application is exiting. | |
| FOnSanitizeName | OnSanitizeName | Fire when we need to sanitize a name, make sure your delegate code is thread safe, since it will be broadcast in any thread. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UInterchangeManager
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | This function cancels all tasks and finishes them as fast as possible. | ||
| bool | CanReimport
(
const UObject* Object, |
Returns true if Interchange can create this type of asset and is able to translate its source files. | |
| bool | CanTranslateSourceData
(
const UInterchangeSourceData* SourceData, |
Check whether there is a registered translator for this source data. | |
| bool | CanTranslateSourceDataWithPayloadInterface
(
const UInterchangeSourceData* SourceData, |
Check whether there is a translator registered that can translate the source data with the specified PayloadInterface. | |
| bool | ConvertImportData
(
UObject* Asset, |
Call all the registered converters to see if any converter can convert the data. | |
| bool | ConvertImportData
(
const UObject* SourceImportData, |
Call all the registered converter, until one can convert the source import data to UInterchangeAssetImportData @Param SourceImportData - The source import data options. | |
| bool | ConvertImportData
(
const UObject* SourceImportData, |
Call all the registered converter, until one can convert the source data to the destination @Param SourceImportData - The source import data options. | |
| TSharedRef< UE::Interchange::FImportAsyncHelper, ESPMode::ThreadSafe > | CreateAsyncHelper
(
const UE::Interchange::FImportAsyncHelperData& Data, |
Return a pointer to an FImportAsyncHelper. | |
| UInterchangeSourceData * | CreateSourceData
(
const FString& InFileName |
Script helper to create a source data object that points to a file on disk. | |
| bool | EnqueuePostImportTask
(
TSharedPtr< FInterchangePostImportTask > PostImportTask |
Queue task that are not directly a import or re-import of assets. | |
| bool | ExportAsset
(
const UObject* Asset, |
Call this to start an asset export process. | |
| bool | ExportScene
(
const UObject* World, |
Call this to start a scene export process. | |
| void | FindPipelineCandidate
(
TArray< UClass* >& PipelineCandidates |
Find all pipeline candidates (C++, Blueprint, and Python). | |
| UInterchangeEditorUtilitiesBase * | Get the editor utilities, those are use for editor operation like saving an asset. | ||
| UInterchangeManager & | Return the Interchange Manager singleton. | ||
| UInterchangeManager * | Return the pointer to the Interchange Manager singleton. | ||
| const UClass * | GetRegisteredFactoryClass
(
const UClass* ClassToMake |
Script helper to get a registered factory for a specified class. | |
| TOptional< bool > | Gets the bReplaceExistingAllDialogAnswer. | ||
| TArray< FString > | GetSupportedAssetTypeFormats
(
const EInterchangeTranslatorAssetType ForTranslatorAssetType, |
Returns the list of formats supporting the specified translator asset type. | |
| TArray< FString > | GetSupportedFormats
(
const EInterchangeTranslatorType ForTranslatorType |
Returns the list of supported formats for a given translator type. | |
| TArray< FString > | GetSupportedFormatsForObject
(
const UObject* Object, |
Returns the list of supported formats for a given Object. | |
| UInterchangeTranslatorBase * | GetTranslatorForSourceData
(
const UInterchangeSourceData* SourceData |
Return the first translator that can translate the source data. | |
| UInterchangeTranslatorBase * | GetTranslatorSupportingPayloadInterfaceForSourceData
(
const UInterchangeSourceData* SourceData, |
Return the first translator that can translate the source data with the specified PayloadInterface. | |
| bool | ImportAsset
(
const FString& ContentPath, |
Call this to start a synchronous asset import process. | |
| bool | ImportAsset
(
const FString& ContentPath, |
Call this to start a synchronous asset import process. | |
| UE::Interchange::FAssetImportResultRef | ImportAssetAsync
(
const FString& ContentPath, |
Call this to start an asynchronous asset import process. | |
| UE::Interchange::FAssetImportResultRef | ImportAssetWithResult
(
const FString& ContentPath, |
Call this to start a synchronous asset import process. | |
| TTuple< UE::Interchange::FAssetImportResultRef, UE::Interchange::FSceneImportResultRef > | ImportInternal
(
const FString& ContentPath, |
Called by the public Import functions. | |
| bool | ImportScene
(
const FString& ContentPath, |
Call this to start a synchronous scene import process. | |
| TTuple< UE::Interchange::FAssetImportResultRef, UE::Interchange::FSceneImportResultRef > | ImportSceneAsync
(
const FString& ContentPath, |
Call this to start a asynchronous scene import process. | |
| bool | IsAttended () |
Return true if Interchange can show UI. | |
| bool | IsImporting () |
Checks if there are any imports in progress. | |
| bool | Return true if Interchange is actively importing or exporting, or false otherwise. | ||
| bool | Return the CVar that enables or disables Interchange. | ||
| bool | IsObjectBeingImported
(
UObject* Object |
Return true if the object is being imported, or false otherwise. | |
| bool | RegisterFactory
(
const UClass* Factory |
All factories must be registered with the manager. | |
| bool | RegisterImportDataConverter
(
const UClass* Converter |
All converters must be registered with the manager. | |
| bool | RegisterTranslator
(
const UClass* TranslatorClass |
All translators must be registered with the manager. | |
| bool | RegisterWriter
(
const UClass* Writer |
All writers must be registered with the manager, @Param Writer - The UClass of the writer you want to register, | |
| void | ReleaseAsyncHelper
(
TWeakPtr< UE::Interchange::FImportAsyncHelper, ESPMode::ThreadSafe > AsyncHelper |
Delete the specified AsyncHelper and remove it from the array that was holding it. | |
| void | Checks if the bReplaceExistingAllDialogAnswer. | ||
| void | SanitizeNameInline
(
FString& NameToSanitize, |
||
| bool | ScriptedImportAssetAsync
(
const FString& ContentPath, |
Call this from blueprint or python to start an asynchronous asset import process. | |
| bool | ScriptedImportSceneAsync
(
const FString& ContentPath, |
Call this to start a asynchronous scene import process. | |
| void | SetActiveMode
(
bool IsActive |
If we set the mode to active, we will setup the timer and add the thread that will block the GC. | |
| void | SetEditorUtilities
(
UClass* EditorUtilitiesClass |
Set the editor utilities, those are use for editor operation like saving an asset. | |
| void | SetInterchangeImportEnabled
(
bool bEnabled |
Set the CVar that enables or disables Interchange. | |
| void | SetReplaceExistingAlldialogAnswer
(
bool bReplaceExistingAllDialogAnswer |
Sets the bReplaceExistingAllDialogAnswer which is responsible for: if the Import process will override or not all existing assets this Import stack tries to override. | |
| void | StartQueuedTasks
(
bool bCancelAllTasks |
Start tasks until we reach the taskgraph worker number. | |
| void | WaitUntilAllTasksDone
(
bool bCancel |
Wait synchronously until all tasks are done. | |
| bool | Return false if Interchange is not actively importing or exporting. |
Typedefs
| Name | Description |
|---|---|
| FInterchangeOnAssetPostImport | Delegate type that is fired when new assets have been imported. |
| FInterchangeOnAssetPostReimport | Delegate type that is fired when new assets have been reimported. |
| FInterchangeOnBatchImportComplete | Delegate type that is fired when the import results in an error. |
Constants
| Name | Description |
|---|---|
| bIsCreatingSingleton |