Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
EditorFileDialog
繼承: FileDialog < ConfirmationDialog < AcceptDialog < Window < Viewport < Node < Object
編輯器使用的 FileDialog 的修改版。
說明
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.use_native_dialog.
Note: EditorFileDialog is invisible by default. To make it visible, call one of the popup_* methods from Window on the node, such as Window.popup_centered_clamped().
Note: On Linux and macOS, sandboxed apps always use native dialogs to access the host file system.
屬性
|
方法
void |
add_side_menu(menu: Control, title: String = "") |
屬性說明
bool disable_overwrite_warning = false 🔗
已棄用: Use FileDialog.overwrite_warning_enabled instead.
如果為 true,EditorFileDialog 將不會在覆蓋檔之前警告使用者。
方法說明
已棄用: This feature is no longer supported.
This method is kept for compatibility and does nothing. As an alternative, you can display another dialog after showing the file dialog.