new LoadingManager(onLoad, onProgress, onError)
Handles and keeps track of loaded and pending data. A default global instance of this class is created and used by loaders if not supplied manually - see zen3d.DefaultLoadingManager.
In general that should be sufficient, however there are times when it can be useful to have seperate loaders - for example if you want to show seperate loading bars for objects and textures.
Parameters:
Name | Type | Description |
---|---|---|
onLoad |
function | — (optional) this function will be called when all loaders are done. |
onProgress |
function | — (optional) this function will be called when an item is complete. |
onError |
function | — (optional) this function will be called a loader encounters errors. |
- Source: