ResourceLoader
Inherits: Object
Category: Core
Brief Description
Resource Loader.
Member Functions
StringArray | get_dependencies ( String path ) |
StringArray | get_recognized_extensions_for_type ( String type ) |
bool | has ( String path ) |
Resource | load ( String path, String type_hint=””, bool p_no_cache=false ) |
ResourceImportMetadata | load_import_metadata ( String path ) |
ResourceInteractiveLoader | load_interactive ( String path, String type_hint=”” ) |
void | set_abort_on_missing_resources ( bool abort ) |
Description
Resource Loader. This is a static object accessible as ResourceLoader. GDScript has a simplified load() function, though.
Member Function Description
StringArray get_dependencies ( String path )
StringArray get_recognized_extensions_for_type ( String type )
Return the list of recognized extensions for a resource type.
bool has ( String path )
Resource load ( String path, String type_hint=””, bool p_no_cache=false )
ResourceImportMetadata load_import_metadata ( String path )
ResourceInteractiveLoader load_interactive ( String path, String type_hint=”” )
Load a resource interactively, the returned object allows to load with high granularity.
void set_abort_on_missing_resources ( bool abort )
Change the behavior on missing sub-resources. Default is to abort load.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/2.1/classes/class_resourceloader.html