Model Class (Microsoft.Xna.Framework.Graphics)

A basic 3D model with per mesh parent bones.
System.Object
   Microsoft.Xna.Framework.Graphics.Model

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public sealed class Model

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The Model type exposes the following members.

  Platforms Name Description
Model Constructs a model. 
Top
  Platforms Name Description
Bones A collection of ModelBone objects which describe how each mesh in the mesh collection for this model relates to its parent mesh. 
Meshes 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. 
Root Root bone for this model. 
Tag Custom attached object. Skinning data is example of attached object for model.  
Top
  Platforms Name Description
CopyAbsoluteBoneTransformsTo Copies bone transforms relative to all parent bones of the each bone from this model to a given array. 
CopyBoneTransformsFrom Copies bone transforms relative to Root bone from a given array to this model. 
CopyBoneTransformsTo Copies bone transforms relative to Root bone from this model to a given array. 
Draw Draws the model meshes. 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web