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 |
---|---|
Render |
Constructs an instance of RenderMeshArray from an array of materials and an array of meshes. |
Properties
Name | Description |
---|---|
Material |
Accessor property for the MaterialMeshIndex array. |
Materials | Accessor property for the materials array. |
Meshes | Accessor property for the meshes array. |
Methods
Name | Description |
---|---|
Combine |
Combines a list of RenderMeshArrays into one RenderMeshArray. |
Combine |
Combines a list of RenderMeshes into one RenderMeshArray. |
Compute |
Calculates and returns the 128-bit hash value of the component contents. |
Create |
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(Render |
Determines whether two object instances are equal based on their hashes. |
Get |
Returns a 128-bit hash that (almost) uniquely identifies the contents of the component. |
Get |
Calculates the hash code for this object. |
Get |
Gets the material for given MaterialMeshInfo. |
Get |
Gets the materials for given MaterialMeshInfo. |
Get |
Gets the mesh for given MaterialMeshInfo. |
Reset |
Recalculates the 128-bit hash value of the component. |
Operators
Name | Description |
---|---|
operator ==(Render |
The equality operator == returns true if its operands are equal, false otherwise. |
operator !=(Render |
The not equality operator != returns false if its operands are equal, true otherwise. |