# vertexCount

> Gets the number of vertices in the MeshData. (Read Only)

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public int vertexCount { get; }
```

### Remarks

vertexCount determines the number of elements in all vertex attribute arrays, including positions ([GetVertices](/engine/6000.5/script-reference/unityengine/mesh/meshdata/getvertices.md)), normals ([GetNormals](/engine/6000.5/script-reference/unityengine/mesh/meshdata/getnormals.md)), and texture coordinates ([GetUVs](/engine/6000.5/script-reference/unityengine/mesh/meshdata/getuvs.md)). Additional Resources: [Mesh.vertexCount](/engine/6000.5/script-reference/unityengine/mesh/vertexcount.md), [GetVertexData](/engine/6000.5/script-reference/unityengine/mesh/meshdata/getvertexdata.md), [Mesh.AcquireReadOnlyMeshData](/engine/6000.5/script-reference/unityengine/mesh/acquirereadonlymeshdata.md).
