SkinnedMeshRender

Inherited: Renderable

Description

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

Public Methods

Armature *

armature () const

Vector3

boundsCenter () const

Vector3

boundsExtent () const

VariantList

materials () const

Mesh *

mesh () const

void

setArmature (Armature * armature)

void

setBoundsCenter (Vector3 center)

void

setBoundsExtent (Vector3 extent)

void

setMaterials (VariantList materials)

void

setMesh (Mesh * mesh)

Static Methods

None

Methods Description

:ref:`Armature<api_Armature>`* SkinnedMeshRender::armature () const

Returns a Armature component for the attached skeleton.

See also setArmature().


Vector3 SkinnedMeshRender::boundsCenter () const

Returns the center of the local bounding box.

See also setBoundsCenter().


Vector3 SkinnedMeshRender::boundsExtent () const

Returns the extent of the local bounding box.

See also setBoundsExtent().


VariantList SkinnedMeshRender::materials () const

Returns a list of assigned materials.

See also setMaterials().


:ref:`Mesh<api_Mesh>`* SkinnedMeshRender::mesh () const

Returns a Mesh assigned to this component.

See also setMesh().


void SkinnedMeshRender::setArmature (Armature * armature)

Attaches an armature skeleton.

See also *armature*().


void SkinnedMeshRender::setBoundsCenter (Vector3 center)

Sets the center of the local bounding box.

See also boundsCenter().


void SkinnedMeshRender::setBoundsExtent (Vector3 extent)

Sets the extent of the local bounding box.

See also boundsExtent().


void SkinnedMeshRender::setMaterials (VariantList materials)

Assigns an array of the materials to the mesh.

See also *materials*().


void SkinnedMeshRender::setMesh (Mesh * mesh)

Assigns a new mesh to draw.

See also *mesh*().