EditorFileDialog
Inherits: ConfirmationDialog < AcceptDialog < WindowDialog < Popup < Control < CanvasItem < Node < Object FileDialog used by the editor.
Properties
Methods
Signals
- dir_selected ( String dir ) Emitted when a directory is selected.
- file_selected ( String path ) Emitted when a file is selected.
- files_selected ( PoolStringArray paths )
Emitted when multiple files are selected.
Enumerations
Mode: - MODE_OPEN_FILE = 0 —- The
EditorFileDialogcan select only one file. Accepting the window will open the file. - MODE_OPEN_FILES = 1 —- The
EditorFileDialogcan select multiple files. Accepting the window will open all files. - MODE_OPEN_DIR = 2 —- The
EditorFileDialogcan select only one directory. Accepting the window will open the directory. - MODE_OPEN_ANY = 3 —- The
EditorFileDialogcan select a file or directory. Accepting the window will open it. - MODE_SAVE_FILE = 4 —- The
EditorFileDialogcan select only one file. Accepting the window will save the file.
Access:
- ACCESS_RESOURCES = 0 —- The
EditorFileDialogcan only viewres://directory contents. - ACCESS_USERDATA = 1 —- The
EditorFileDialogcan only viewuser://directory contents. - ACCESS_FILESYSTEM = 2 —- The
EditorFileDialogcan view the entire local file system.
DisplayMode:
- DISPLAY_THUMBNAILS = 0 —- The
EditorFileDialogdisplays resources as thumbnails. - DISPLAY_LIST = 1 —- The
EditorFileDialogdisplays resources as a list of filenames.Property Descriptions
- Access access
res://,user://, and the local file system.
- String current_dir The currently occupied directory.
- String current_file The currently selected file.
- String current_path The file system path in the address bar.
- bool disable_overwrite_warning
true, theEditorFileDialogwill not warn the user before overwriting files.
- DisplayMode display_mode
EditorFileDialogdisplays resources to the user.
- Mode mode
EditorFileDialog, which defines the allowed behaviors.
- bool show_hidden_files
true, hidden files and directories will be visible in theEditorFileDialog.Method Descriptions
- add_filter ( String filter )
EditorFileDialogwith an optional semi-colon-delimited label."*.tscn, *.scn; Scenes"results in filter text “Scenes (.tscn, .scn)”.
- clear_filters ( ) Removes all filters except for “All Files (*)”.
- VBoxContainer get_vbox ( )
VBoxContainerused 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.
- invalidate ( )
EditorFileDialogthat its view of the data is no longer accurate. Updates the view contents on next view update.
