MeshComponent Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Renders a mesh at the position of the Entity.
public ref class MeshComponent : Microsoft::Azure::RemoteRendering::ComponentBase
public class MeshComponent : Microsoft.Azure.RemoteRendering.ComponentBase
type MeshComponent = class
inherit ComponentBase
Public Class MeshComponent
Inherits ComponentBase
- Inheritance
Remarks
The referenced Mesh is rendered at the location of the owner entity. The mesh component also allows to override the materials that are used for rendering. If the mesh has been converted with collision information, it will also participate in spatial queries.
Properties
Enabled |
Enabled state of this component. (Inherited from ComponentBase) |
InteropId | (Inherited from ObjectBase) |
Materials |
Returns the list of materials set on this component. |
Mesh |
The Mesh used for rendering and spatial queries. |
Owner |
The Entity that this component is attached to. (Inherited from ComponentBase) |
Type |
The exact type of this component. (Inherited from ComponentBase) |
UsedMaterials |
Returns the list of actually used materials for rendering the mesh. |
Valid |
Whether this component is still valid. (Inherited from ComponentBase) |
Methods
AsToolingObject<ToolingObject>() | (Inherited from ObjectBase) |
Destroy() |
Destroys the component in the runtime. (Inherited from ComponentBase) |
Equals(Object) | (Inherited from ObjectBase) |
GetHashCode() | (Inherited from ObjectBase) |
GetMaterials(List<Material>) | |
GetUsedMaterials(List<Material>) | |
SetMaterial(Int32, Material) |
Sets an override material for a given material slot. |