コード例 #1
0
 public void SetFace(List <string> keys, List <float> strength, bool stopBlink)
 {
     StopBlink = stopBlink;
     proxy.ClearKeys();
     foreach (var key in BlendShapeKeys)
     {
         proxy.SetValue(key, 0.0f, false);
     }
     proxy.SetValue(BlendShapePreset.Neutral, 1.0f);
     for (int i = 0; i < keys.Count; i++)
     {
         proxy.SetValue(keys[i], strength[i], false);
     }
     proxy.Apply();
 }