Handles and keeps track of loaded and pending data.
Constructor methods
constructor(onLoad?: () => void, onProgress?: (url: string, loaded: number, total: number) => void, onError?: () => void): LoadingManager
Parameters
-
onLoad?: () => void optional
-
onProgress?: (url: string, loaded: number, total: number) => void optional
-
onError?: () => void optional
Returns
LoadingManager
Properties
public onError: () => void
Will be called when each element in the scene completes loading.
The default is a function with empty body.
public onLoad: () => void
Will be called when load starts.
The default is a function with empty body.
public onProgress: (item: any, loaded: number, total: number) => void
Will be called while load progresses.
The default is a function with empty body.
Methods
public itemEnd(url: string)
Parameters
public itemStart(url: string)
Parameters