Windows Native Toolkit

File Picker Library

Native Windows picker nodes for files, folders, and save-file selection.

Use this library when you need a native Windows picker instead of a custom Unreal file browser.

Python examples use Unreal's reflected API names through the unreal module. Every input argument is passed explicitly to match Unreal Python binding expectations.

Open Path Picker

Opens one shared native picker for files or folders and always returns an array of selected paths.

PinDirectionPurpose
DialogTitleInputWindow title shown by the picker.
DefaultPathInputInitial folder shown by the picker.
FileTypesInputWindows filter string. Used only when PickerType is File.
bAllowMultipleInputAllows selecting multiple files or folders.
PickerTypeInputChoose File or Folder.
Return ValueOutputTrue when the user confirmed a selection.
OutPathsOutputSelected file or folder paths.
C++ Example
#include "FilePickerLibrary.h"

TArray<FString> PickedPaths;
const bool bPicked = UFilePickerLibrary::OpenPathPicker(
    TEXT("Select Files"),
    TEXT("C:/"),
    TEXT("Images|*.png;*.jpg"),
    true,
    EFilePickerType::File,
    PickedPaths
);
Python Example
import unreal

picked, picked_paths = unreal.FilePickerLibrary.open_path_picker(
    "Select Files",
    "C:/",
    "Images|*.png;*.jpg",
    True,
    unreal.FilePickerType.FILE,
)

Make File Filter

Builds a Windows file-dialog filter string from FFileDialogFilter entries.

PinDirectionPurpose
FiltersInputArray of filter definitions.
Return ValueOutputWindows filter string suitable for Open Path Picker or Open Save File Picker.

Each FFileDialogFilter contains:

  • Name
  • Pattern
C++ Example
#include "FilePickerLibrary.h"

TArray<FFileDialogFilter> Filters;
FFileDialogFilter Images;
Images.Name = TEXT("Images");
Images.Pattern = TEXT("*.png;*.jpg");
Filters.Add(Images);

const FString FilterString = UFilePickerLibrary::MakeFileFilter(Filters);
Python Example
import unreal

filters = [
    unreal.FileDialogFilter(name="Images", pattern="*.png;*.jpg"),
]
filter_string = unreal.FilePickerLibrary.make_file_filter(filters)

Open Save File Picker

Opens the native Windows save dialog and returns the chosen output path.

PinDirectionPurpose
DialogTitleInputWindow title shown by the save dialog.
DefaultPathInputInitial folder shown by the dialog.
DefaultFileNameInputInitial file name shown in the dialog.
FileTypesInputWindows filter string.
Return ValueOutputTrue when the user confirmed a path.
OutFilenameOutputFull output file path selected by the user.
C++ Example
#include "FilePickerLibrary.h"

FString SavedPath;
const bool bSaved = UFilePickerLibrary::ShowSaveFilePicker(
    TEXT("Save Report"),
    TEXT("C:/Temp"),
    TEXT("Report.txt"),
    TEXT("Text Files|*.txt"),
    SavedPath
);
Python Example
import unreal

saved, saved_path = unreal.FilePickerLibrary.show_save_file_picker(
    "Save Report",
    "C:/Temp",
    "Report.txt",
    "Text Files|*.txt",
)

Last updated on

On this page