Here is a snippet of code that you can use to connect a slider to your shape keys. Be sure to use it in the Update() method. Also, you'll need to add corresponding public fields to your script.

SkinnedMeshRenderer skin = yourobject.GetComponent<SkinnedMeshRenderer>();
skin.SetBlendShapeWeight (shapekeyindex, yourslider.value);

Last modified: Thursday, January 31, 2019, 10:02 AM