Inherits: ConfirmationDialog < AcceptDialog < Window < Viewport < Node < Object
A modified version of FileDialog used by the editor.
EditorFileDialog is an enhanced version of FileDialog available only to editor plugins. Additional features include list of favorited/recent files and the ability to see files as thumbnails grid instead of list.
| ||
dialog_hide_on_ok |
| |
| ||
| ||
| ||
| ||
| ||
title |
|
void | add_filter ( String filter, String description="" ) |
void | add_side_menu ( Control menu, String title="" ) |
void | clear_filters ( ) |
get_line_edit ( ) | |
get_vbox ( ) | |
void | invalidate ( ) |
Emitted when a directory is selected.
Emitted when a file is selected.
Emitted when multiple files are selected.
0
The EditorFileDialog can select only one file. Accepting the window will open the file.
1
The EditorFileDialog can select multiple files. Accepting the window will open all files.
2
The EditorFileDialog can select only one directory. Accepting the window will open the directory.
3
The EditorFileDialog can select a file or directory. Accepting the window will open it.
4
The EditorFileDialog can select only one file. Accepting the window will save the file.
0
The EditorFileDialog can only view res:// directory contents.
1
The EditorFileDialog can only view user:// directory contents.
2
The EditorFileDialog can view the entire local file system.
0
The EditorFileDialog displays resources as thumbnails.
1
The EditorFileDialog displays resources as a list of filenames.
0
The location from which the user may select a file, including res://, user://, and the local file system.
The currently occupied directory.
The currently selected file.
The file system path in the address bar.
false
If true, the EditorFileDialog will not warn the user before overwriting files.
0
The view format in which the EditorFileDialog displays resources to the user.
4
The dialog's open or save mode, which affects the selection behavior. See FileMode.
PackedStringArray()
The available file type filters. For example, this shows only .png and .gd files: set_filters(PackedStringArray(["*.png ; PNG Images","*.gd ; GDScript Files"])). Multiple file types can also be specified in a single filter. "*.png, *.jpg, *.jpeg ; Supported Images" will show both PNG and JPEG files when selected.
false
If true, hidden files and directories will be visible in the EditorFileDialog. This property is synchronized with EditorSettings.filesystem/file_dialog/show_hidden_files.
Adds a comma-delimited file name filter option to the EditorFileDialog with an optional description, which restricts what files can be picked.
A filter should be of the form "filename.extension", where filename and extension can be * to match any string. Filters starting with . (i.e. empty filenames) are not allowed.
For example, a filter of "*.tscn, *.scn" and a description of "Scenes" results in filter text "Scenes (*.tscn, *.scn)".
Adds the given menu to the side of the file dialog with the given title text on top. Only one side menu is allowed.
Removes all filters except for "All Files (*)".
Returns the LineEdit for the selected file.
Warning: This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their CanvasItem.visible property.
Returns the VBoxContainer used to display the file system.
Warning: This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their CanvasItem.visible property.
Notify the EditorFileDialog that its view of the data is no longer accurate. Updates the view contents on next view update.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_editorfiledialog.html