# GetVertices(List<Vector3>)

> Gets the vertex positions of the Mesh.

## Definition

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

```csharp
public void GetVertices(List<Vector3> vertices)
```

### Parameters

**** (\[List\<Vector3>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): A list of vertex positions to populate.

### Remarks

Use this method instead of [Mesh.vertices](/engine/6000.5/script-reference/unityengine/mesh/vertices.md) if you control the life cycle of the list passed in and you want to avoid allocating a new array with every access.

Additional Resources: [Mesh.AcquireReadOnlyMeshData](/engine/6000.5/script-reference/unityengine/mesh/acquirereadonlymeshdata.md) function.
