# [name]

Base class for implementing loaders.

## Constructor

### [name]( [param:LoadingManager manager] )

[page:LoadingManager manager] — The [page:LoadingManager loadingManager] for the loader to use. Default is [page:LoadingManager THREE.DefaultLoadingManager].

Creates a new [name].

## Properties

### [property:string crossOrigin]

The crossOrigin string to implement CORS for loading the url from a different domain that allows CORS. Default is *anonymous*.

### [property:LoadingManager manager]

The [page:LoadingManager loadingManager] the loader is using. Default is [page:DefaultLoadingManager].

### [property:String path]

The base path from which the asset will be loaded. Default is the empty string.

### [property:String resourcePath]

The base path from which additional resources like textures will be loaded. Default is the empty string.

## Methods

### [method:void load]()

This method needs to be implement by all concrete loaders. It holds the logic for loading the asset from the backend.

### [method:void parse]()

This method needs to be implement by all concrete loaders. It holds the logic for parsing the asset into three.js entities.

### [method:Loader setCrossOrigin]( [param:String crossOrigin] )

[page:String crossOrigin] — The crossOrigin string to implement CORS for loading the url from a different domain that allows CORS.

### [method:Loader setPath]( [param:String path] )

[page:String path] — Set the base path for the asset.

### [method:Loader setResourcePath]( [param:String resourcePath] )

[page:String resourcePath] — Set the base path for dependent resources like textures.

## Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]