UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
InterchangeFilePickerBase.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
7#include "UObject/Object.h"
9
10#include "InterchangeFilePickerBase.generated.h"
11
12USTRUCT(BlueprintType)
14{
16
17 //If true, the user will be able to select multiple files.
18 UPROPERTY(EditAnywhere, Category = "Interchange | File Picker")
19 bool bAllowMultipleFiles = false;
20
21 //If not empty, this will override the default title.
22 UPROPERTY(EditAnywhere, Category = "Interchange | File Picker")
24
25 //Set the default open path that the dialog will show to the user.
26 UPROPERTY(EditAnywhere, Category = "Interchange | File Picker")
27 FString DefaultPath = TEXT("");
28
29 //If true, the user will be able to select any unreal editor factory + interchange file types.
30 UPROPERTY(EditAnywhere, Category = "Interchange | File Picker")
31 bool bShowAllFactoriesExtension = false;
32
33 //Add some extension to the picker. Format text item that way TEXT("fbx;Filmbox")
34 UPROPERTY(EditAnywhere, Category = "Interchange | File Picker")
35 TArray<FString> ExtraFormats;
36};
37
38UCLASS(Abstract, BlueprintType, Blueprintable, MinimalAPI)
40{
42
43public:
44
48 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Interchange | Utilities")
49 INTERCHANGEENGINE_API bool ScriptedFilePickerForTranslatorAssetType(const EInterchangeTranslatorAssetType TranslatorAssetType, FInterchangeFilePickerParameters& Parameters, TArray<FString>& OutFilenames);
50
52 bool ScriptedFilePickerForTranslatorAssetType_Implementation(const EInterchangeTranslatorAssetType TranslatorAssetType, FInterchangeFilePickerParameters& Parameters, TArray<FString>& OutFilenames)
53 {
54 //By default we call the virtual function FilePickerForTranslatorAssetType
55 return FilePickerForTranslatorAssetType(TranslatorAssetType, Parameters, OutFilenames);
56 }
57
61 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Interchange | Utilities")
62 INTERCHANGEENGINE_API bool ScriptedFilePickerForTranslatorType(const EInterchangeTranslatorType TranslatorType, FInterchangeFilePickerParameters& Parameters, TArray<FString>& OutFilenames);
63
65 bool ScriptedFilePickerForTranslatorType_Implementation(const EInterchangeTranslatorType TranslatorAssetType, FInterchangeFilePickerParameters& Parameters, TArray<FString>& OutFilenames)
66 {
67 //By default we call the virtual function FilePickerForTranslatorType
68 return FilePickerForTranslatorType(TranslatorAssetType, Parameters, OutFilenames);
69 }
70
71
72protected:
73
81
89
90};
#define TEXT(x)
Definition Platform.h:1272
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EInterchangeTranslatorType
Definition InterchangeTranslatorBase.h:46
EInterchangeTranslatorAssetType
Definition InterchangeTranslatorBase.h:55
const bool
Definition NetworkReplayStreaming.h:178
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define UCLASS(...)
Definition ObjectMacros.h:776
#define USTRUCT(...)
Definition ObjectMacros.h:746
Definition Text.h:385
Definition Array.h:670
Definition InterchangeFilePickerBase.h:40
virtual bool FilePickerForTranslatorType(const EInterchangeTranslatorType TranslatorType, FInterchangeFilePickerParameters &Parameters, TArray< FString > &OutFilenames)
Definition InterchangeFilePickerBase.h:88
virtual bool FilePickerForTranslatorAssetType(const EInterchangeTranslatorAssetType TranslatorAssetType, FInterchangeFilePickerParameters &Parameters, TArray< FString > &OutFilenames)
Definition InterchangeFilePickerBase.h:80
Definition Object.h:95
@ false
Definition radaudio_common.h:23
Definition InterchangeFilePickerBase.h:14