- Home /
Question by
MountDoomTeam · Sep 28, 2012 at 09:20 AM ·
verticesvertexcountnumber
Count vertices of a gameobject
Is there a way to count the vertices of a GameObject, a prefab, etc?
Comment
mesh.vertexCount
eg: GetComponent($$anonymous$$eshFilter).mesh.vertexCount
Documentation/ScriptReference/$$anonymous$$esh-vertices.html
DON'T get the length of the vertices array. confusingly, it creates a whole copy of it when you call for that
Your answer
![](https://koobas.hobune.stream/wayback/20220613081609im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Making the camera follow vertices 0 Answers
Submesh Vertices 1 Answer
Checking If A Triangle Is In A Mesh 1 Answer
Editing vertices 1 Answer
Mesh.vertices are all 0? 1 Answer