FileSystemDock
繼承: VBoxContainer < BoxContainer < 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 被移除時發出。
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 被移除時發出。
建立新場景,且該場景繼承自位於 file 路徑的場景時發出。
instantiate(files: PackedStringArray) 🔗
在編輯器中產生實體給定場景時發出。
resource_removed(resource: Resource) 🔗
外部資源 resource 的對應檔被移除時發出。
方法說明
void add_resource_tooltip_plugin(plugin: EditorResourceTooltipPlugin) 🔗
註冊一個新的 EditorResourceTooltipPlugin。
將給定的 path 設定為目前選定的路徑,能夠確保選中的檔/目錄可見。
void remove_resource_tooltip_plugin(plugin: EditorResourceTooltipPlugin) 🔗
移除一個 EditorResourceTooltipPlugin。如果該外掛程式尚未新增,則失敗。