Resource Loader.
    public static class ResourceLoader

Resource Loader. This is a static object accessible as ResourceLoader. GDScript has a simplified load() function, though.

Inheritance Chain

Static Properties

    public static Object Singleton { get; }

Static Methods

    public static bool Exists(string path, string typeHint = "")

    public static string[] GetDependencies(string path)

    public static string[] GetRecognizedExtensionsForType(string type)

Return the list of recognized extensions for a resource type.

    public static bool Has(string path)

    public static bool HasCached(string path)

    public static T Load<T>(string path) where T

    public static Resource Load(string path, string typeHint = "", bool noCache = false)

    public static ResourceInteractiveLoader LoadInteractive(string path, string typeHint = "")

Load a resource interactively, the returned object allows to load with high granularity.

    public static void SetAbortOnMissingResources(bool abort)

Change the behavior on missing sub-resources. Default is to abort load.

Tags: