Table of Contents

Class Model

Namespace
Stride.Rendering
Assembly
Stride.Rendering.dll

Collection of Mesh, each one usually being a different LOD of the same Model. The effect system will select the appropriate LOD depending on distance, current pass, and other effect-specific requirements.

[DataSerializerGlobal(typeof(ReferenceSerializer<Model>), null, DataSerializerGenericMode.None, false, false, Profile = "Content")]
[ContentSerializer(typeof(DataContentSerializer<Model>))]
[DataContract]
public class Model : IEnumerable
Inheritance
Model
Implements
Extension Methods

Properties

BoundingBox

Gets or sets the bounding box encompassing all the Meshes (not including animation).

public BoundingBox BoundingBox { get; set; }

Property Value

BoundingBox

The bounding box.

BoundingSphere

Gets or sets the bounding sphere encompassing all the Meshes (not including animation).

public BoundingSphere BoundingSphere { get; set; }

Property Value

BoundingSphere

The bounding sphere.

Children

Gets the views.

public IList<Model> Children { get; set; }

Property Value

IList<Model>

The views.

Materials

Gets the materials.

public List<MaterialInstance> Materials { get; }

Property Value

List<MaterialInstance>

The materials.

Meshes

Gets the meshes.

public List<Mesh> Meshes { get; set; }

Property Value

List<Mesh>

The meshes.

Skeleton

Gets or sets the hierarchy definition, which describes nodes name, default transformation and hierarchical parent.

public Skeleton Skeleton { get; set; }

Property Value

Skeleton

The hierarchy, which describes nodes name, default transformation and hierarchical parent.

Methods

Add(MaterialInstance)

Adds the specified material (for collection Initializers).

public void Add(MaterialInstance material)

Parameters

material MaterialInstance

The mesh.

Add(Mesh)

Adds the specified mesh (for collection Initializers).

public void Add(Mesh mesh)

Parameters

mesh Mesh

The mesh.

Add(Model)

Adds the specified model view (for collection Initializers).

public void Add(Model model)

Parameters

model Model

The model view.

Instantiate()

Create a clone with its own ParameterCollection. It allows reuse of a single Model for multiple ModelComponent.

public Model Instantiate()

Returns

Model