# AddUIVertexStream

> Take the Vertex stream and split it corrisponding arrays (positions, colors, uv0s, uv1s, normals and tangents).

## Definition

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

## AddUIVertexStream(List\<UIVertex>, List\<Vector3>, List\<Color32>, List\<Vector4>, List\<Vector4>, List\<Vector3>, List\<Vector4>)

Take the Vertex stream and split it corrisponding arrays (positions, colors, uv0s, uv1s, normals and tangents).

```csharp
public static void AddUIVertexStream(List<UIVertex> verts, List<Vector3> positions, List<Color32> colors, List<Vector4> uv0S, List<Vector4> uv1S, List<Vector3> normals, List<Vector4> tangents)
```

### Parameters

**** (\[List\<UIVertex>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The UIVertex list to split.**** (\[List\<Vector3>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The destination list for the verts positions.**** (\[List\<Color32>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The destination list for the verts colors.**** (\[List\<Vector4>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The destination list for the verts uv0s.**** (\[List\<Vector4>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The destination list for the verts uv1s.**** (\[List\<Vector3>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The destination list for the verts normals.**** (\[List\<Vector4>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The destination list for the verts tangents.

## AddUIVertexStream(List\<UIVertex>, List\<Vector3>, List\<Color32>, List\<Vector4>, List\<Vector4>, List\<Vector4>, List\<Vector4>, List\<Vector3>, List\<Vector4>)

Take the Vertex stream and split it corrisponding arrays (positions, colors, uv0s, uv1s, normals and tangents).

```csharp
public static void AddUIVertexStream(List<UIVertex> verts, List<Vector3> positions, List<Color32> colors, List<Vector4> uv0S, List<Vector4> uv1S, List<Vector4> uv2S, List<Vector4> uv3S, List<Vector3> normals, List<Vector4> tangents)
```

### Parameters

**** (\[List\<UIVertex>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The UIVertex list to split.**** (\[List\<Vector3>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The destination list for the verts positions.**** (\[List\<Color32>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The destination list for the verts colors.**** (\[List\<Vector4>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The destination list for the verts uv0s.**** (\[List\<Vector4>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The destination list for the verts uv1s.**** (\[List\<Vector4>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): **** (\[List\<Vector4>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): **** (\[List\<Vector3>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The destination list for the verts normals.**** (\[List\<Vector4>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The destination list for the verts tangents.
