Constructor Submesh
Submesh(int, MeshTopology, IEnumerable<int>)
Creates a new Submesh from a submesh index for the material, the topology, and a set of indices.
Declaration
public Submesh(int submeshIndex, MeshTopology topology, IEnumerable<int> indexes)
Parameters
Type | Name | Description |
---|---|---|
int | submeshIndex | The index of this submesh that corresponds to the sharedMaterials property. |
MeshTopology | topology | The topology of this submesh. ProBuilder only recognizes Triangles and Quads. |
IEnumerable<int> | indexes | The triangles or quads. |
Submesh(Mesh, int)
Creates a new Submesh from a source mesh and a submesh index for the material.
Declaration
public Submesh(Mesh mesh, int subMeshIndex)
Parameters
Type | Name | Description |
---|---|---|
Mesh | mesh | The source mesh. |
int | subMeshIndex | Which submesh to read from. |