Method SetMesh
SetMesh(Mesh, IList<Vertex>)
Replaces mesh values with the specified vertex array. The mesh is cleared during this function, so you need to set the triangles after calling this method.
Declaration
public static void SetMesh(Mesh mesh, IList<Vertex> vertices)
Parameters
Type | Name | Description |
---|---|---|
Mesh | mesh | The target mesh. |
IList<Vertex> | vertices | The vertices to replace the mesh attributes with. |