Function ResourceLoaderSingleton.load
Loads a resource at the given path
, caching the result for further access.
The registered ResourceFormatLoader
s are queried sequentially to find the first one which can handle the file's extension, and then attempt loading. If loading fails, the remaining ResourceFormatLoaders are also attempted.
An optional type_hint
can be used to further specify the Resource
type that should be handled by the ResourceFormatLoader
.
If no_cache
is true
, the resource cache will be bypassed and the resource will be loaded anew. Otherwise, the cached resource will be returned if it exists.
Returns an empty resource if no ResourceFormatLoader could handle the file.