CLASSES
TagsA - Z

ImageAssetTask

Assets

Description

class ImageAssetTask

Load task on the given image

Constructor

new ImageAssetTask(name, url)

The ImageAssetTask

Parameters

Name Type Description
name string The name
url string The url to this image

Members

name : string

The name

url : string

The url to this image

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.

image : HTMLImageElement

The image

Methods

run(scene, onSuccess, onError) void

Parameters

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