Method FromRenderMeshArrayIndices
FromRenderMeshArrayIndices(int, int, sbyte)
Creates an instance of MaterialMeshInfo from material and mesh/sub-mesh indices in the corresponding RenderMeshArray.
Declaration
public static MaterialMeshInfo FromRenderMeshArrayIndices(int materialIndexInRenderMeshArray, int meshIndexInRenderMeshArray, sbyte submeshIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| int | materialIndexInRenderMeshArray | The material index in Materials. |
| int | meshIndexInRenderMeshArray | The mesh index in Meshes. |
| sbyte | submeshIndex | An optional submesh ID. |
Returns
| Type | Description |
|---|---|
| MaterialMeshInfo | Returns the MaterialMeshInfo instance that contains the material and mesh indices. |