Mesh

The Mesh class describes a scene mesh.

Properties

PropertyDescription
blendShapes
(get) blendShapes: BlendShapesMesh
(set) (Not Available)


Returns the set of blendshapes that this mesh contains.
material
(get) material: MaterialBase
(set) material: MaterialBase


Specifies the material of the scene object.
materialIdentifier
(get) materialIdentifier: string
(set) (Not Available)


Specifies the unique id of material for Mesh.
prefabName
(get) prefabName: string
(set) (Not Available)


Specifies the name of prefab for Mesh. This is the unique identifier of the prefab.

Methods

MethodDescription
getBlendShapes
getBlendShapes(): Promise<Array<BlendShape>>


Returns a JS Promise which will be fulfilled with array of blend Shapes or an error.
getMaterial
getMaterial(): Promise<MaterialBase>


Returns a promise that is resolved with the material associated with a given scene object or null if no material was assigned.