EditorFileDialog
A modified version of FileDialog used by the editor.
A modified version of FileDialog used by the editor.
EditorFileDialog is a FileDialog tweaked to work in the editor. It automatically handles favorite and recent directory lists, and synchronizes some properties with their corresponding editor settings.
EditorFileDialog will automatically show a native dialog based on the EditorSettings.interface/editor/appearance/use_native_file_dialogs editor setting and ignores FileDialog.UseNativeDialog.
Note: EditorFileDialog is invisible by default. To make it visible, call one of the popup_* methods from Window on the node, such as Window.PopupCenteredClamped.
Note: On Linux and macOS, sandboxed apps always use native dialogs to access the host file system.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
EditorFileDialogConstructor
public EditorFileDialog();Properties1
DisableOverwriteWarningProperty · Deprecated
public bool DisableOverwriteWarning { get; set; }If true, the EditorFileDialog will not warn the user before overwriting files.
Methods3
AddSideMenuvoid · Deprecated
public void AddSideMenu(Control menu, string title = "");This method is kept for compatibility and does nothing. As an alternative, you can display another dialog after showing the file dialog.
| Name | Type | Default |
|---|---|---|
menu | Control | — |
title | string | "" |
IsOverwriteWarningDisabledbool
public bool IsOverwriteWarningDisabled();boolSetDisableOverwriteWarningvoid
public void SetDisableOverwriteWarning(bool disable);| Name | Type | Default |
|---|---|---|
disable | bool | — |