pixi.loaders.Resource
- type
- class
Constructor
- parameters
name {string} The name of the resource to load.
url {string|string[]} The url for this resource, for audio/video loads you can pass an array of sources.
[options] {object} The options for the load.
[options.crossOrigin] {boolean} Is this request cross-origin? Default is to determine automatically.
[options.loadType=Resource.LOAD_TYPE.XHR] {Resource.LOAD_TYPE} How should this resource be loaded?
[options.xhrType=Resource.XHR_RESPONSE_TYPE.DEFAULT] {Resource.XHR_RESPONSE_TYPE} How should the data being loaded be interpreted when using XHR?