CLASSES
TagsA - Z

BinaryFileAssetTask

Description

class BinaryFileAssetTask

Load task on the given binary file

Constructor

new BinaryFileAssetTask(name, url)

The BinaryFileAssetTask

Parameters

Name Type Description
name string The name
url string The url for this binary file

Members

name : string

The name

url : string

The url for this binary file

onSuccess : (task: IAssetTask) => void

Function call when the mesh is load successfully

onError : (task: IAssetTask) => void

Function call when the mesh isn't load successfully

isCompleted : boolean

True if is completed, false otherwise.

data : ArrayBuffer

The data

Methods

run(scene, onSuccess, onError) → void

Parameters

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