TextureAssetTask

Assets

Description

class TextureAssetTask extends AbstractAssetTask

Constructor

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

Parameters

Name Type Description
name string
url string
optional noMipmap boolean or undefined
optional invertY boolean or undefined

Members

name : string

url : string

noMipmap : boolean

undefined : undefined

invertY : boolean

undefined : undefined

samplingMode : number

texture : Texture

onSuccess : (task: TextureAssetTask) => void

Parameters

Name Type Description
task TextureAssetTask

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

Parameters

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