TextFileAssetTask

Assets

Description

class TextFileAssetTask extends AbstractAssetTask

Constructor

new TextFileAssetTask(name, url)

Parameters

Name Type Description
name string
url string

Members

name : string

url : string

text : string

onSuccess : (task: TextFileAssetTask) => void

Parameters

Name Type Description
task TextFileAssetTask

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

Parameters

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