# HasVertexAttribute(Sprite, VertexAttribute)

> Checks if a specific channel exists for this Sprite.

## Definition

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

```csharp
public static bool HasVertexAttribute(this Sprite sprite, VertexAttribute channel)
```

### Parameters

**** (\[Sprite]\(/engine/6000.6/script-reference/unityengine/sprite)): **** (\[VertexAttribute]\(/engine/6000.6/script-reference/unityengine/rendering/vertexattribute)):&#x20;

### Returns

| Type                                                          | Description                 |
| ------------------------------------------------------------- | --------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the channel exists. |
