MeshRenderΒΆ

Inherited: Renderable

DescriptionΒΆ

The MeshRender component allows you to display 3D Mesh to use in both 2D and 3D scenes.

Public MethodsΒΆ

float

blendShapeWeight (size_t index) const

VariantList

materials () const

Mesh *

mesh () const

void

setBlendShapeWeight (size_t index, float weight)

void

setMaterials (VariantList materials)

void

setMesh (Mesh * mesh)

Static MethodsΒΆ

None

Methods DescriptionΒΆ

float MeshRender::blendShapeWeight (size_t index) const

Returns weight of a blend shape with specified index.

See also setBlendShapeWeight().


VariantList MeshRender::materials () const

Returns a list of assigned materials.

See also setMaterials().


Mesh * MeshRender::mesh () const

Returns a Mesh assigned to this component.

See also setMesh().


void MeshRender::setBlendShapeWeight (size_t index, float weight)

Sets the weight of a blend shape with specified index for this renderer.

See also blendShapeWeight().


void MeshRender::setMaterials (VariantList materials)

Assigns an array of the materials to the mesh.

See also materials().


void MeshRender::setMesh (Mesh * mesh)

Assigns a new mesh to draw.

See also mesh().