getLoader(name)
Obtains the loader function associated with the name of the specified custom loader.
Returns
If the name of the custom loader is not specified, the default loader function is returned.
Parameters
Name | Type | Description | Required |
name | string | The name of the custom loader. | ✅ |
Usage example
In this example, the API returns the font-loader
function.
const loader = AssetLoader.getLoader('font-loader');
Previous topic getConstellationServiceUrl() Next topic getStaticServerUrl()