Method SetVertices
SetVertices(IList<Vertex>, bool)
Sets the vertex element arrays on this mesh.
Declaration
public void SetVertices(IList<Vertex> vertices, bool applyMesh = false)
Parameters
Type | Name | Description |
---|---|---|
IList<Vertex> | vertices | The new vertex array. |
bool | applyMesh | Optionally indicate whether to apply elements to the sharedMesh. Note that you should only use this when the mesh is in its original state, not optimized (that is, when it won't affect triangles which can be UnityEditor.ProBuilder.EditorMeshUtility.Optimize). |