FileSystemDock
Godot editor’s dock for managing files in the project.
FileSystemDock.swift:26class FileSystemDock
This class is available only in EditorPlugin
s and can’t be instantiated. You can access it using getFileSystemDock
.
While FileSystemDock
doesn’t expose any methods for file manipulation, it can listen for various file-related signals.
This object emits the following signals:
Superclasses
class VBoxContainer
A container that arranges its child controls vertically.
Citizens in SwiftGodot
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Identifiable<ID>
A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable
Types that conform to VariantRepresentable can be stored directly in
Variant
with no conversion. These include all of the Variant types from Godot (for exampleGString
,Rect
,Plane
), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.protocol VariantStorable
Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
Types
class Signal1
Signal support.
class Signal2
Signal support.
class Signal3
Signal support.
class Signal4
Signal support.
class Signal5
Signal support.
class Signal6
Signal support.
class Signal7
Signal support.
Type members
Instance members
var displayModeChanged: SimpleSignal
Emitted when the user switches file display mode or split mode.
var fileRemoved: Signal4
Emitted when the given
file
was removed.var filesMoved: Signal6
Emitted when a file is moved from
oldFile
path tonewFile
path.var folderMoved: Signal7
Emitted when a folder is moved from
oldFolder
path tonewFolder
path.var folderRemoved: Signal5
Emitted when the given
folder
was removed.var inherit: Signal1
Emitted when a new scene is created that inherits the scene at
file
path.var instantiate: Signal2
Emitted when the given scenes are being instantiated in the editor.
var resourceRemoved: Signal3
Emitted when an external
resource
had its file removed.func addResourceTooltipPlugin(EditorResourceTooltipPlugin?
) Registers a new
EditorResourceTooltipPlugin
.func removeResourceTooltipPlugin(EditorResourceTooltipPlugin?
) Removes an
EditorResourceTooltipPlugin
. Fails if the plugin wasn’t previously added.