UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
InterchangeTaskImportObject.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
9#include "Stats/Stats.h"
12
13namespace UE::Interchange
14{
19 {
20 private:
21 FString PackageBasePath;
22 int32 SourceIndex;
24 UInterchangeFactoryBaseNode* FactoryNode;
25 const UClass* FactoryClass;
26
27 public:
29 : PackageBasePath(InPackageBasePath)
30 , SourceIndex(InSourceIndex)
31 , WeakAsyncHelper(InAsyncHelper)
32 , FactoryNode(InFactoryNode)
33 , FactoryClass(InFactoryClass)
34 {
35 check(FactoryNode);
36 check(FactoryClass);
37 }
38
39 virtual EInterchangeTaskThread GetTaskThread() const override
40 {
42 }
43
44 virtual void Execute() override;
45 };
46
48 {
49 private:
50 FString PackageBasePath;
51 int32 SourceIndex;
53 UInterchangeFactoryBaseNode* FactoryNode;
54
55 public:
64
65 virtual EInterchangeTaskThread GetTaskThread() const override
66 {
67 TSharedPtr<FImportAsyncHelper, ESPMode::ThreadSafe> AsyncHelper = WeakAsyncHelper.Pin();
68 if (AsyncHelper.IsValid() && AsyncHelper->bRunSynchronous)
69 {
71 }
72
74 }
75
76 virtual void Execute() override;
77 };
78
83 {
84 private:
85 FString PackageBasePath;
86 int32 SourceIndex;
88 UInterchangeFactoryBaseNode* FactoryNode;
89 const UClass* FactoryClass;
90
91 public:
100
101 virtual EInterchangeTaskThread GetTaskThread() const override
102 {
104 }
105
106 virtual void Execute() override;
107 };
108
109}//ns UE::Interchange
#define check(expr)
Definition AssertionMacros.h:314
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
Definition SharedPointer.h:692
UE_FORCEINLINE_HINT const bool IsValid() const
Definition SharedPointer.h:1085
Definition SharedPointer.h:1295
UE_FORCEINLINE_HINT TSharedPtr< ObjectType, Mode > Pin() const &
Definition SharedPointer.h:1512
Definition Class.h:3793
Definition InterchangeTaskSystem.h:35
Definition InterchangeTaskImportObject.h:83
virtual EInterchangeTaskThread GetTaskThread() const override
Definition InterchangeTaskImportObject.h:101
virtual void Execute() override
Definition InterchangeTaskImportObject.cpp:679
FTaskImportObjectFinalize_GameThread(const FString &InPackageBasePath, const int32 InSourceIndex, TWeakPtr< FImportAsyncHelper, ESPMode::ThreadSafe > InAsyncHelper, UInterchangeFactoryBaseNode *InFactoryNode)
Definition InterchangeTaskImportObject.h:92
Definition InterchangeTaskImportObject.h:48
virtual void Execute() override
Definition InterchangeTaskImportObject.cpp:637
virtual EInterchangeTaskThread GetTaskThread() const override
Definition InterchangeTaskImportObject.h:65
FTaskImportObject_Async(const FString &InPackageBasePath, const int32 InSourceIndex, TWeakPtr< FImportAsyncHelper, ESPMode::ThreadSafe > InAsyncHelper, UInterchangeFactoryBaseNode *InFactoryNode)
Definition InterchangeTaskImportObject.h:56
Definition InterchangeTaskImportObject.h:19
virtual void Execute() override
Definition InterchangeTaskImportObject.cpp:261
virtual EInterchangeTaskThread GetTaskThread() const override
Definition InterchangeTaskImportObject.h:39
FTaskImportObject_GameThread(const FString &InPackageBasePath, const int32 InSourceIndex, TWeakPtr< FImportAsyncHelper, ESPMode::ThreadSafe > InAsyncHelper, UInterchangeFactoryBaseNode *InFactoryNode, const UClass *InFactoryClass)
Definition InterchangeTaskImportObject.h:28
Definition InterchangeFactoryBaseNode.h:188
Definition InterchangeHelper.cpp:9
EInterchangeTaskThread
Definition InterchangeTaskSystem.h:29