# AddBlendShapeFrame(int, float, NativeArray<SpriteBlendShapeVertex>)

> Adds a frame to the specified blend shape and returns the index of the newly created frame.

## Definition

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

```csharp
public int AddBlendShapeFrame(int shapeIndex, float frameWeight, NativeArray<SpriteBlendShapeVertex> vertices)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the blend shape.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The weight of the new frame.**** (\[NativeArray\<SpriteBlendShapeVertex>]\(/engine/6000.7/script-reference/unity/collections/nativearray1)): The array of blend shape vertices for the frame.

### Returns

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

### Remarks

You can only add frames to the most recently created blend shape. You must add frames in increasing weight order for blend shapes that have multiple frames.
