> For the complete documentation index, see [llms.txt](https://malbersanimations.gitbook.io/animal-controller/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://malbersanimations.gitbook.io/animal-controller/utilities/blend-shapes/blend-shape-preset.md).

# Blend Shape Preset

\<done>

## Overview

The Blend Shape Preset is simply an array of float values you can save of the Blend shapes you have modified.&#x20;

![](https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-M7Tw9H4QnzO3oUu0i48%2F-M7U-TEq_7Ljvlx4tb79%2Fimage.png?alt=media\&token=a08d7944-3e31-4280-bf31-a4bdab336e0d)

You can use this presets to modify the blend shapes of a mesh and transform the animal from a cub to an adult

![This effect is achieved using blendshape presets and bones Preset](https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-M7U-wnd07S2OLZP_m96%2F-M7U1ATVW7rGteqHYwGJ%2FLTBTc3OxJb.gif?alt=media\&token=afd6186d-2ef5-476c-b756-93f9857671ad)

## Parameters

### Blend Time

Time to change smoothly between 2 presets

### Blend Curve

Curve to follow when changing smoothly between 2 presets

### Blend Shape Weights

List of the stored weights for the blendshape list

## Public Methods and properties

### void Load(SkinnedMeshRenderer mesh)

> Instantly Load a preset to a skinned mesh

### void SmoothBlend(MonoBehaviour coroutine, SkinnedMeshRenderer mesh)

> Smoothly blend a preset to a skinned mesh, the **Monobehaviour** parameter\[**coroutine**] is for execute a coroutine used on the smooth transition.

### `void SmoothBlend(MonoBehaviour coroutine)`

> Stored a Monobehaviour for execute a coroutine for smoothing blend a preset on a skinned mesh. this should be called **before  `moothBlend(SkinnedMeshRenderer mesh)`**

### void SmoothBlend(SkinnedMeshRenderer mesh)

> Smoothly blend a preset to a skinned mesh. this method must be called **after `SmoothBlend(MonoBehaviour coroutine)`**
