# AddBlendShape(string)

> Adds a new blend shape to the sprite and returns the index of the newly created blend shape.

## Definition

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

```csharp
public int AddBlendShape(string shapeName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the blend shape to add. Must be unique.

### Returns

| Type                                                       | Description                                           |
| ---------------------------------------------------------- | ----------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the newly created blend shape (0-based). |

### Remarks

Throws an exception if a blend shape with the same name already exists or if the name is null or empty.
