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.

FileSystemDock

繼承: EditorDock < MarginContainer < Container < Control < CanvasItem < Node < Object

Godot 編輯器中用於管理專案檔案的停靠面板。

說明

這個類僅在 EditorPlugin 中可用,無法產生實體。可以使用 EditorInterface.get_file_system_dock() 存取。

雖然 FileSystemDock 沒有暴露任何操作檔的方法,但是你可以監聽各種與檔相關的訊號。

方法

void

add_resource_tooltip_plugin(plugin: EditorResourceTooltipPlugin)

void

navigate_to_path(path: String)

void

remove_resource_tooltip_plugin(plugin: EditorResourceTooltipPlugin)


訊號

display_mode_changed() 🔗

使用者切換檔顯示模式或分隔模式時發出。


file_removed(file: String) 🔗

給定的檔 file 被移除時發出。


files_moved(old_file: String, new_file: String) 🔗

檔從 old_file 路徑移動到 new_file 路徑時發出。


folder_color_changed() 🔗

Emitted when folders change color.


folder_moved(old_folder: String, new_folder: String) 🔗

資料夾從 old_folder 路徑移動到 new_folder 路徑時發出。


folder_removed(folder: String) 🔗

給定的資料夾 folder 被移除時發出。


inherit(file: String) 🔗

建立新場景,且該場景繼承自位於 file 路徑的場景時發出。


instantiate(files: PackedStringArray) 🔗

在編輯器中產生實體給定場景時發出。


resource_removed(resource: Resource) 🔗

外部資源 resource 的對應檔被移除時發出。


selection_changed() 🔗

Emitted when the selection changes. Use EditorInterface.get_selected_paths() in the connected method to get the selected paths.


方法說明

void add_resource_tooltip_plugin(plugin: EditorResourceTooltipPlugin) 🔗

註冊一個新的 EditorResourceTooltipPlugin


void navigate_to_path(path: String) 🔗

將給定的 path 設定為目前選定的路徑,能夠確保選中的檔/目錄可見。


void remove_resource_tooltip_plugin(plugin: EditorResourceTooltipPlugin) 🔗

移除一個 EditorResourceTooltipPlugin。如果該外掛程式尚未新增,則失敗。