Struct RenderMesh
Defines the mesh and rendering properties of an entity during baking.
Namespace: Unity.Rendering
Assembly: solution.dll
Syntax
[Serializable]
[MaximumChunkCapacity(128)]
[TemporaryBakingType]
public struct RenderMesh : ISharedComponentData, IQueryTypeParameter
Constructors
Name | Description |
---|---|
RenderMesh(Renderer, Mesh, List<Material>, int) | Constructs a RenderMesh using the given Renderer, Mesh, optional list of shared Materials, and option sub-mesh index. |
Fields
Name | Description |
---|---|
materials | The material list. |
mesh | A reference to a UnityEngine.Mesh object. |
subMesh | The submesh index. |
Properties
Name | Description |
---|---|
material | A reference to a UnityEngine.Material object. |
Methods
Name | Description |
---|---|
Equals(RenderMesh) | Two RenderMesh objects are equal if their respective property values are equal. |
GetHashCode() | A representative hash code. |