Method ToMesh
ToMesh(MeshTopology)
Rebuilds the mesh positions and submeshes.
If the vertex count matches the new positions array, the existing attributes are kept (except for UV2s, which are always cleared). Otherwise, the mesh is cleared.
Declaration
public void ToMesh(MeshTopology preferredTopology = MeshTopology.Triangles)
Parameters
Type | Name | Description |
---|---|---|
MeshTopology | preferredTopology | You can specify MeshTopology.Quads if you don't want to use the default MeshTopology.Triangles. |