# SetVertices(NativeSlice<Vertex>)

> Replace this draw's vertices.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public void SetVertices(NativeSlice<Vertex> vertices)
```

### Parameters

**** (\[NativeSlice\<Vertex>]\(/engine/6000.7/script-reference/unity/collections/nativeslice1)):&#x20;

### Remarks

The new slice can be any length greater than 0, but all currently-attached non-empty extras must already match the new vertex count, or this call is logged and rejected. To resize vertices and extras together, use [DrawData.SetMesh](/engine/6000.7/script-reference/unityengine/uielements/drawdata/setmesh.md).
