- Home /
 
 
               Question by 
               alexander11 · Jul 19, 2016 at 03:28 AM · 
                c#unity 5mesh3d  
              
 
              Is there a similar Command to lineRenderer.SetVertexCount for mesh??
Is there a similar Command to lineRenderer.SetVertexCount for mesh??
               Comment
              
 
               
              Answer by NoseKills · Jul 19, 2016 at 05:28 AM
You set the amount of vertices in a mesh by assigning an array with desired length to Mesh.vertices. Of course you need to set the vertices (and possibly triangles etc.) to something sensible if you want to see something on the screen too.
Your answer