subMeshIndex
The index of the sub-mesh to be combined with the other meshes.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public int subMeshIndex { get; set; }
Remarks
The Mesh.CombineMeshes method uses this property along with the CombineInstance.mesh property to identify the mesh data copy into the combined mesh. If a mesh contains multiple sub-meshes, you must create a separate for each sub-mesh.
CombineInstanceThe default value of this property is 0.
Accepted values range from greater than or equal to 0 and less than the sub-mesh count for the corresponding CombineInstance.mesh.