Class: AssetListLoader

pc.AssetListLoader

Used to load a group of assets and fires a callback when all assets are loaded

Constructor

(private) new AssetListLoader(assetList, assetRegistry)

Parameters:
Name Type Description
assetList Array.<pc.Asset> | Array.<Number> An array of pc.Asset objects to load or an array of Asset IDs to load
assetRegistry pc.AssetRegistry The application's asset registry
Source:

Methods

load(done, scope)

Start loading asset list, call done() when all assets have loaded or failed to load
Parameters:
Name Type Description
done function Callback called when all assets in the list are loaded. Passed (err, failed) where err is the undefined if no errors are encountered and failed contains a list of assets that failed to load
scope Object Scope to use when calling callback
Source:

ready(done, scope)

Parameters:
Name Type Description
done function Callback called when all assets in the list are loaded
scope Object Scope to use when calling callback
Source: