CLASSES
TagsA - Z

TextureAssetTask

Assets

Description

class TextureAssetTask

Load task on the given texture

Constructor

new TextureAssetTask(name, url, noMipmap, invertY, samplingMode)

The TextureAssetTask constructor

Parameters

Name Type Description
name string The name
url string The url for this texture
optional noMipmap boolean Set true if you want to activate Mipmap, false otherwise.
optional invertY boolean Invert y axis or not

Members

name : string

The name

url : string

The url for this texture

noMipmap : boolean

Set true if you want to activate Mipmap, false otherwise.

invertY : boolean

Invert the y axis

samplingMode : number

The sampling mode

onSuccess : ITextureAssetTask) => void

Function call when the mesh is load successfully

onError : ITextureAssetTask) => void

Function call when the mesh isn't load successfully

isCompleted : boolean

True if is completed, false otherwise.

texture : Texture

The texture

Methods

run(scene, onSuccess, onError) void

Parameters

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