Model.Meshes Property

Gets a collection of ModelMesh objects which compose the model. Each ModelMesh in a model may be moved independently and may be composed of multiple materials identified as ModelMeshPart objects.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public ModelMeshCollection Meshes { get; }

Property Value

A collection of ModelMesh objects used by this model.

Remarks

For a demonstration of how to use the transforms for the parent bones of a model mesh to set the position of the mesh objects, please see How to: Render a Model.

See Also

Tasks

How to: Render a Model

Reference

Model Class
Model Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista