CLASSES
TagsA - Z

MeshAssetTask

MeshAssets

Description

class MeshAssetTask

Load the task on the given Mesh

Constructor

new MeshAssetTask(name, meshesNames, rootUrl, sceneFilename)

The MeshAssetTask constructor

Parameters

Name Type Description
name string The name
meshesNames any The meshes names
rootUrl string The root url for this mesh

Members

name : string

The task name

meshesNames : any

The meshes names to load

rootUrl : string

The root url for this mesh

sceneFilename : string

The babylon file name

loadedMeshes : Array<AbstractMesh>

The loaded meshes

loadedParticleSystems : Array<ParticleSystem>

The loaded Particule system linked to this mesh

loadedSkeletons : Array<Skeleton>

The loaded Skeletons linked to this mesh

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.

Methods

run(scene, onSuccess, onError) void

Parameters

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