# SetVertices

> Set the vertices for the UIRenderer.

## Definition

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

## SetVertices(List\<UIVertex>)

Set the vertices for the [UIRenderer](/engine/6000.3/script-reference/unityengine/uielements/uirenderer.md).

> **Warning:**
>
> **Deprecated.** UI System now uses meshes.Generate a mesh and use 'SetMesh' instead

```csharp
public void SetVertices(List<UIVertex> vertices)
```

### Parameters

**** (\[List\<UIVertex>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): Array of vertices to set.

## SetVertices(UIVertex\[], int)

Set the vertices for the [UIRenderer](/engine/6000.3/script-reference/unityengine/uielements/uirenderer.md).

> **Warning:**
>
> **Deprecated.** UI System now uses meshes.Generate a mesh and use 'SetMesh' instead

```csharp
public void SetVertices(UIVertex[] vertices, int size)
```

### Parameters

**** (\[UIVertex\[]]\(/engine/6000.3/script-reference/unityengine/uivertex)): Array of vertices to set.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Number of vertices to set.
