MeshAssetTask

MeshAssets

Description

class MeshAssetTask extends AbstractAssetTask

Constructor

new MeshAssetTask(name, meshesNames, rootUrl, sceneFilename)

Parameters

Name Type Description
name string
meshesNames any
rootUrl string

Members

name : string

meshesNames : any

rootUrl : string

sceneFilename : string

loadedMeshes : Array<AbstractMesh>

loadedParticleSystems : Array<ParticleSystem>

loadedSkeletons : Array<Skeleton>

onSuccess : (task: MeshAssetTask) => void

Parameters

Name Type Description
task MeshAssetTask

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

Parameters

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