# GetBlendShapeIndex(string)

> Returns the index of the blend shape with the given name, or -1 if it does not exist.

## Definition

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

```csharp
public int GetBlendShapeIndex(string blendShapeName)
```

### Parameters

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

### Returns

| Type                                                       | Description                                                 |
| ---------------------------------------------------------- | ----------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the blend shape (0-based), or -1 if not found. |

### Remarks

Throws an exception if the name is null or empty.
