FileSystemDock
继承: VBoxContainer < BoxContainer < Container < Control < CanvasItem < Node < Object
Godot editor's dock for managing files in the project.
描述
This class is available only in EditorPlugin s 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.
方法
void | add_resource_tooltip_plugin ( plugin: EditorResourceTooltipPlugin ) |
void | navigate_to_path ( path: String ) |
void | remove_resource_tooltip_plugin ( plugin: EditorResourceTooltipPlugin ) |
信号
display_mode_changed ( )
Emitted when the user switches file display mode or split mode.
file_removed ( file: String )
Emitted when the given file was removed.
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 ( )
Emitted when folders change color.
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: String )
Emitted when the given folder was removed.
inherit ( file: String )
Emitted when a new scene is created that inherits the scene at file path.
instantiate ( files: PackedStringArray )
Emitted when the given scenes are being instantiated in the editor.
resource_removed ( resource: Resource )
Emitted when an external resource had its file removed.
方法说明
void add_resource_tooltip_plugin ( plugin: EditorResourceTooltipPlugin )
Registers a new EditorResourceTooltipPlugin.
void navigate_to_path ( path: String )
Sets the given path as currently selected, ensuring that the selected file/directory is visible.
void remove_resource_tooltip_plugin ( plugin: EditorResourceTooltipPlugin )
Removes an EditorResourceTooltipPlugin. Fails if the plugin wasn't previously added.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。