BinaryFileAssetTask

Description

class BinaryFileAssetTask extends AbstractAssetTask

Constructor

new BinaryFileAssetTask(name, url)

Parameters

Name Type Description
name string
url string

Members

name : string

url : string

data : ArrayBuffer

onSuccess : (task: BinaryFileAssetTask) => void

Parameters

Name Type Description
task BinaryFileAssetTask

onError : (task: BinaryFileAssetTask, message: string, exception: any) => void

Parameters

Name Type Description
task BinaryFileAssetTask
optional message string
optional exception any

Methods

runTask(scene, onSuccess, onError) void

Parameters

Name Type Description
scene Scene
onSuccess
onError optional message string
optional exception any