CombineInstance.mesh

public Mesh mesh;

Description

The Mesh to combine with the other CombineInstance meshes from the CombineMeshes list.

The Mesh.CombineMeshes API uses this property and CombineInstance.subMeshIndex to decide what to combine from this CombineInstance.

Unity can only combine the mesh if it has the following properties:

  • Accessible from a script.
  • Not null.

The default value is null.

Additional resources: Mesh.CombineMeshes, subMeshIndex.


Did you find this page useful? Please give it a rating: