FileSystemDock
Inherits: EditorDock < MarginContainer < Container < Control < CanvasItem < Entity < Object
Description
Section titled “Description”Orblit editor’s dock for managing files in the project.
This class is available only in EditorPlugins and can’t be instantiated. You can access it using EditorInterface.get_file_system_dock().
While FileSystemDock doesn’t expose any methods for file manipulation, it can listen for various file-related signals.
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| void | add_resource_tooltip_plugin(plugin: EditorResourceTooltipPlugin) |
| void | navigate_to_path(path: String) |
| void | remove_resource_tooltip_plugin(plugin: EditorResourceTooltipPlugin) |
Signals
Section titled “Signals”display_mode_changed
display_mode_changed()
Emitted when the user switches file display mode or split mode.
file_removed
file_removed(file: String)
Emitted when the given file was removed.
files_moved
files_moved(old_file: String, new_file: String)
Emitted when a file is moved from old_file path to new_file path.
folder_color_changed
folder_color_changed()
Emitted when folders change color.
folder_moved
folder_moved(old_folder: String, new_folder: String)
Emitted when a folder is moved from old_folder path to new_folder path.
folder_removed
folder_removed(folder: String)
Emitted when the given folder was removed.
inherit
inherit(file: String)
Emitted when a new scene is created that inherits the scene at file path.
instantiate
instantiate(files: PackedStringArray)
Emitted when the given scenes are being instantiated in the editor.
resource_removed
resource_removed(resource: Resource)
Emitted when an external resource had its file removed.
selection_changed
selection_changed()
Emitted when the selection changes. Use EditorInterface.get_selected_paths() in the connected method to get the selected paths.
Method descriptions
Section titled “Method descriptions”add_resource_tooltip_plugin
void add_resource_tooltip_plugin(plugin: EditorResourceTooltipPlugin)
Registers a new EditorResourceTooltipPlugin.
navigate_to_path
void navigate_to_path(path: String)
Sets the given path as currently selected, ensuring that the selected file/directory is visible.
remove_resource_tooltip_plugin
void remove_resource_tooltip_plugin(plugin: EditorResourceTooltipPlugin)
Removes an EditorResourceTooltipPlugin. Fails if the plugin wasn’t previously added.
