Struct RenderMeshArray
A shared component that contains meshes and materials.
Namespace: Unity.Rendering
Assembly: solution.dll
Syntax
public struct RenderMeshArray : ISharedComponentData, IQueryTypeParameter
Constructors
| Name | Description |
|---|---|
| RenderMeshArray(Material[], Mesh[], MaterialMeshIndex[]) | Constructs an instance of RenderMeshArray from an array of materials and an array of meshes. |
Properties
| Name | Description |
|---|---|
| MaterialMeshIndices | Accessor property for the MaterialMeshIndex array. |
| Materials | Accessor property for the materials array. |
| Meshes | Accessor property for the meshes array. |
Methods
| Name | Description |
|---|---|
| CombineRenderMeshArrays(List<RenderMeshArray>) | Combines a list of RenderMeshArrays into one RenderMeshArray. |
| CombineRenderMeshes(List<RenderMesh>) | Combines a list of RenderMeshes into one RenderMeshArray. |
| ComputeHash128() | Calculates and returns the 128-bit hash value of the component contents. |
| CreateWithDeduplication(List<Material>, List<Mesh>) | Creates the new instance of the RenderMeshArray from given mesh and material lists, removing duplicate entries. |
| Equals(object) | Determines whether two object instances are equal based on their hashes. |
| Equals(RenderMeshArray) | Determines whether two object instances are equal based on their hashes. |
| GetHash128() | Returns a 128-bit hash that (almost) uniquely identifies the contents of the component. |
| GetHashCode() | Calculates the hash code for this object. |
| GetMaterial(MaterialMeshInfo) | Gets the material for given MaterialMeshInfo. |
| GetMaterials(MaterialMeshInfo) | Gets the materials for given MaterialMeshInfo. |
| GetMesh(MaterialMeshInfo) | Gets the mesh for given MaterialMeshInfo. |
| ResetHash128() | Recalculates the 128-bit hash value of the component. |
Operators
| Name | Description |
|---|---|
| operator ==(RenderMeshArray, RenderMeshArray) | The equality operator == returns true if its operands are equal, false otherwise. |
| operator !=(RenderMeshArray, RenderMeshArray) | The not equality operator != returns false if its operands are equal, true otherwise. |