Blend Shapes
<done>
The Blend Shapes Component controls the blend shapes of a skinned mesh..just like the SkinnedMeshRenderer component does. but you don't have to search for the mesh deep in the hierarchy.

Sample of the BlendShapes component

Blend Shapes inside the SkinnedMeshRenderer Component.

Blend Shapes inside the SkinnedMeshRenderer Component.
Reference to the skinned mesh renderer.
Extra meshes that share the same Blendshapes, like LODs meshes or the Magic Tattoos on the Poly Art Animals:

The "magic" mesh also changes with the mesh of the wolf

The Pin blendshape is the value stored to be used with Unity Events, since this unity Events cannot have more than one value on its listeners.

E.g. : In the first Listener we Store/Pin Blend Shape (the first one, with index=0) and on the second Listener we change the value of tha stored/pinned blend shape with the Slider value of the UI component.
You can check how to use the Pin Shape on the Callback Sample scenes of each Animal.

List of all the Blend shapes weights of the skinned mesh renderer. Each Blendshape have a label for its Index. E.g.: (00) is the Index for the Blend Shape Big Eyes on the Wolf.
The Blend Shape Preset is simply an array of float values to save/load the Blend shapes you have modified.
If the Preset parameter has a preset set, then At start the component this preset will be loaded.
At Start this component will generate random blend shape weights.

Reset all the weights of the blendshapes to zero.
Randomize all the weights of the blendshapes
Save the current blend shapes to a preset.
Load a blend preset.
Gets an array of all the blendshape weights on the skinned mesh renderer.
Blends from the current blend shapes weights to the weights of the preset.
Load the weights from the preset.
Randomize the weights on the skinned mesh and its LODs
Set a new weight on a blendshape using its name
Set a new weight on a blendshape using its index
Store/Pin a blend shape by its name
Store/Pin a blend shape by its Index
Set a new weight on the Stored/Pinned blend shape
Updates all the weights of the component to the Skinned mesh renderer
Last modified 2yr ago