Static Methodmigueldeicaza.swiftgodot 0.45.0SwiftGodot
removeResourceFormatLoader(_:)
Unregisters the given ResourceFormatLoader
.
static func removeResourceFormatLoader(_ formatLoader: ResourceFormatLoader?)
Other members in extension
Types
Type members
static func addResourceFormatLoader(ResourceFormatLoader?, atFront: Bool
) Registers a new
ResourceFormatLoader
. The ResourceLoader will use the ResourceFormatLoader as described inload(path:typeHint:cacheMode:)
.static func exists(path: String, typeHint: String
) -> Bool Returns whether a recognized resource exists for the given
path
.static func getDependencies(path: String
) -> PackedStringArray Returns the dependencies for the resource at the given
path
.static func getRecognizedExtensionsForType(String
) -> PackedStringArray Returns the list of recognized extensions for a resource type.
static func getResourceUid(path: String
) -> Int Returns the ID associated with a given resource path, or
-1
when no such ID exists.static func hasCached(path: String
) -> Bool Returns whether a cached resource is available for the given
path
.static func load(path: String, typeHint: String, cacheMode: ResourceLoader.CacheMode
) -> Resource? Loads a resource at the given
path
, caching the result for further access.static func loadThreadedGet(path: String
) -> Resource? Returns the resource loaded by
loadThreadedRequest(path:typeHint:useSubThreads:cacheMode:)
.static func loadThreadedGetStatus(path: String, progress: GArray
) -> ResourceLoader.ThreadLoadStatus Returns the status of a threaded loading operation started with
loadThreadedRequest(path:typeHint:useSubThreads:cacheMode:)
for the resource atpath
. SeeThreadLoadStatus
for possible return values.static func loadThreadedRequest(path: String, typeHint: String, useSubThreads: Bool, cacheMode: ResourceLoader.CacheMode
) -> GodotError Loads the resource using threads. If
useSubThreads
istrue
, multiple threads will be used to load the resource, which makes loading faster, but may affect the main thread (and thus cause game slowdowns).static func setAbortOnMissingResources(abort: Bool
) Changes the behavior on missing sub-resources. The default behavior is to abort loading.
class var godotClassName: StringName