# SetBlendShapeWeight(int, float)

> Sets the weight of a BlendShape for this Renderer.

## Definition

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

```csharp
public void SetBlendShapeWeight(int index, float value)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the BlendShape to modify. Index must be smaller than the [Mesh.blendShapeCount](/engine/6000.7/script-reference/unityengine/mesh/blendshapecount.md) of the Mesh attached to this Renderer.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The weight for this BlendShape.

### Remarks

The weight of a BlendShape represents how much the Mesh has been blended (or morphed) from its original shape to a target BlendShape (another Mesh containing the same topology, but with different vertex positions than the original). The BlendShape weight range includes values between the minimum and the maximum weights defined in the model.

Additional Resources: [SkinnedMeshRenderer.GetBlendShapeWeight](/engine/6000.7/script-reference/unityengine/skinnedmeshrenderer/getblendshapeweight.md).
