ImageAssetTask

Assets

Description

class ImageAssetTask extends AbstractAssetTask

Constructor

new ImageAssetTask(name, url)

Parameters

Name Type Description
name string
url string

Members

name : string

url : string

image : HTMLImageElement

onSuccess : (task: ImageAssetTask) => void

Parameters

Name Type Description
task ImageAssetTask

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

Parameters

Name Type Description
task ImageAssetTask
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