Attention: Here be dragons
This is the
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
A singleton for loading resource files.
A singleton used to load resource files from the filesystem.
It uses the many ResourceFormatLoader classes registered in the engine (either built-in or from a plugin) to load files into memory and convert them to a format that can be used by the engine.
Note: You have to import the files into the engine first to load them using load. If you want to load Images at run-time, you may use Image.load. If you want to import audio files, you can use the snippet described in AudioStreamMP3.data.
ThreadLoadStatus THREAD_LOAD_INVALID_RESOURCE =
The resource is invalid, or has not been loaded with load_threaded_request.
ThreadLoadStatus THREAD_LOAD_IN_PROGRESS =
The resource is still being loaded.
ThreadLoadStatus THREAD_LOAD_FAILED =
Some error occurred during loading and it failed.
ThreadLoadStatus THREAD_LOAD_LOADED =
The resource was loaded successfully and can be accessed via load_threaded_get.