.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_ResourceLoader: ResourceLoader ============== **Inherits:** :ref:`Object` **Category:** Core Brief Description ----------------- Resource Loader. Member Functions ---------------- +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`StringArray` | :ref:`get_dependencies` **(** :ref:`String` path **)** | +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`StringArray` | :ref:`get_recognized_extensions_for_type` **(** :ref:`String` type **)** | +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`has` **(** :ref:`String` path **)** | +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Resource` | :ref:`load` **(** :ref:`String` path, :ref:`String` type_hint="", :ref:`bool` p_no_cache=false **)** | +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`ResourceImportMetadata` | :ref:`load_import_metadata` **(** :ref:`String` path **)** | +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`ResourceInteractiveLoader` | :ref:`load_interactive` **(** :ref:`String` path, :ref:`String` type_hint="" **)** | +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_abort_on_missing_resources` **(** :ref:`bool` abort **)** | +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Description ----------- Resource Loader. This is a static object accessible as :ref:`ResourceLoader`. GDScript has a simplified load() function, though. Member Function Description --------------------------- .. _class_ResourceLoader_get_dependencies: - :ref:`StringArray` **get_dependencies** **(** :ref:`String` path **)** .. _class_ResourceLoader_get_recognized_extensions_for_type: - :ref:`StringArray` **get_recognized_extensions_for_type** **(** :ref:`String` type **)** Return the list of recognized extensions for a resource type. .. _class_ResourceLoader_has: - :ref:`bool` **has** **(** :ref:`String` path **)** .. _class_ResourceLoader_load: - :ref:`Resource` **load** **(** :ref:`String` path, :ref:`String` type_hint="", :ref:`bool` p_no_cache=false **)** .. _class_ResourceLoader_load_import_metadata: - :ref:`ResourceImportMetadata` **load_import_metadata** **(** :ref:`String` path **)** .. _class_ResourceLoader_load_interactive: - :ref:`ResourceInteractiveLoader` **load_interactive** **(** :ref:`String` path, :ref:`String` type_hint="" **)** Load a resource interactively, the returned object allows to load with high granularity. .. _class_ResourceLoader_set_abort_on_missing_resources: - void **set_abort_on_missing_resources** **(** :ref:`bool` abort **)** Change the behavior on missing sub-resources. Default is to abort load.