# SetVertexAttribute<T>(Sprite, VertexAttribute, NativeArray<T>)

> Sets a specific channel of the VertexAttribute.

## Definition

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

```csharp
public static void SetVertexAttribute<T>(this Sprite sprite, VertexAttribute channel, NativeArray<T> src) where T : struct
```

### Parameters

**** (\[Sprite]\(/engine/6000.5/script-reference/unityengine/sprite)): **** (\[VertexAttribute]\(/engine/6000.5/script-reference/unityengine/rendering/vertexattribute)): **** (\[NativeArray\<T>]\(/engine/6000.5/script-reference/unity/collections/nativearray1)): The list of values for this specific VertexAttribute channel. The array must be disposed of by the caller.

### Remarks

See [SpriteDataAccessExtensions.GetVertexAttribute](/engine/6000.5/script-reference/unityengine/u2d/spritedataaccessextensions/getvertexattribute.md).
