Skip to main content

Interface: LoadingConfig

Utils.LoadingConfig

Configuration options for resource loading.

Properties​

onError​

• Optional onError: (error: unknown) => void

Type declaration​

▸ (error): void

A callback function for handling errors during resource loading. This function is called with an error object in case of loading errors.

Parameters​
NameType
errorunknown
Returns​

void

Defined in​

src/utils/Asset.ts:16


onProgress​

• Optional onProgress: (ratio: number) => void

Type declaration​

▸ (ratio): void

A callback function for reporting progress during resource loading. This function is called with a ratio (0 to 1) to indicate the loading progress.

Parameters​
NameType
rationumber
Returns​

void

Defined in​

src/utils/Asset.ts:11