Static Propertymigueldeicaza.swiftgodot 0.45.0SwiftGodot
shared
The shared instance of this class
ResourceSaver.swift:16static var shared: ResourceSaver
Other members in extension
Types
Type members
static func addResourceFormatSaver(ResourceFormatSaver?, atFront: Bool
) Registers a new
ResourceFormatSaver
. The ResourceSaver will use the ResourceFormatSaver as described insave(resource:path:flags:)
.static func getRecognizedExtensions(type: Resource?
) -> PackedStringArray Returns the list of extensions available for saving a resource of a given type.
static func removeResourceFormatSaver(ResourceFormatSaver?
) Unregisters the given
ResourceFormatSaver
.static func save(resource: Resource?, path: String, flags: ResourceSaver.SaverFlags
) -> GodotError Saves a resource to disk to the given path, using a
ResourceFormatSaver
that recognizes the resource object. Ifpath
is empty,ResourceSaver
will try to useresourcePath
.class var godotClassName: StringName