| Parameter | Description |
|---|---|
| index | The index of the blend shape to modify. The index must be smaller than the Sprite.blendShapeCount of the sprite attached to this renderer. |
| value | The weight for this blend shape. |
Sets the weight of a blend shape for this renderer.
The weight of a blend shape represents how much the sprite has been blended (or morphed) from its original shape to a target blend shape. The target blend shape is another sprite containing the same topology, but with different vertex positions than the original.
The blend shape weight range includes values between the minimum and the maximum weights defined in the sprite.
For blend shapes to take effect, set SpriteRenderer.drawMode to SpriteDrawMode.Simple. If you use a Sprite Skin component, GPU skinning must be enabled. To enable GPU skinning in the Unity Editor, from the main menu select Edit > Project Settings > Player > Other Settings, then set GPU Skinning to GPU (Batched) or GPU.
Note that blend shape deformation does not update Renderer.bounds or Renderer.localBounds.
Additional resources: GetBlendShapeWeight.