CLASSES
TagsA - Z

TextFileAssetTask

Assets

Description

class TextFileAssetTask

Constructor

new TextFileAssetTask(name, url)

The TextFileAssetTask constructor

Parameters

Name Type Description
name string The name
url string The url to this text file

Members

name : string

The name

url : string

The url to this text file

onSuccess : IAssetTask) => void

Function call when the mesh is load successfully

onError : IAssetTask) => void

Function call when the mesh isn't load successfully

isCompleted : boolean

True if is completed, false otherwise.

text : string

The text

Methods

run(scene, onSuccess, onError) void

Parameters

Name Type Description
scene Scene The scene where the text file is.
onSuccess () => void Function call when the mesh is load successfully
onError () => void Function call when the mesh isn't load successfully