/** * <summary>Sets a blendshape within a ShapeGroup as the "active" one, causing all others to be disabled.</summary> * <param name = "_groupID">The unique identifier of the ShapeGroup to affect</param> * <param name = "_keyID">The unique identifier of the blendshape to affect</param? * <param name = "_value">The value to set the active blendshape</param> * <param name = "_deltaTime">The duration, in seconds, that the group's blendshapes should be affected</param> * <param name = "_moveMethod">The interpolation method by which the blendshapes are affected (Linear, Smooth, Curved, EaseIn, EaseOut, CustomCurve)</param> * <param name = "_timeCurve">If _moveMethod = MoveMethod.CustomCurve, then the transition speed will be follow the shape of the supplied AnimationCurve. This curve can exceed "1" in the Y-scale, allowing for overshoot effects.</param> */ public void SetActiveKey(int _groupID, int _keyID, float _value, float _deltaTime, MoveMethod _moveMethod, AnimationCurve _timeCurve) { ShapeGroup shapeGroup = GetGroup(_groupID); if (shapeGroup != null) { shapeGroup.SetActive(_keyID, _value, _deltaTime, _moveMethod, _timeCurve); } }
/** * <summary>Sets a blendshape within a ShapeGroup as the "active" one, causing all others to be disabled.</summary> * <param name = "_groupLabel">The name of the ShapeGroup to affect</param> * <param name = "_keyLabel">The name of the blendshape to affect</param? * <param name = "_value">The value to set the active blendshape</param> * <param name = "_deltaTime">The duration, in seconds, that the group's blendshapes should be affected</param> * <param name = "_moveMethod">The interpolation method by which the blendshapes are affected (Linear, Smooth, Curved, EaseIn, EaseOut, CustomCurve)</param> * <param name = "_timeCurve">If _moveMethod = MoveMethod.CustomCurve, then the transition speed will be follow the shape of the supplied AnimationCurve. This curve can exceed "1" in the Y-scale, allowing for overshoot effects.</param> */ public void SetActiveKey(string _groupLabel, string _keyLabel, float _value, float _deltaTime, MoveMethod _moveMethod, AnimationCurve _timeCurve) { ShapeGroup shapeGroup = GetGroup(_groupLabel); if (shapeGroup != null) { shapeGroup.SetActive(_keyLabel, _value, _deltaTime, _moveMethod, _timeCurve); } }
/** * <summary>Disables all blendshapes within a ShapeGroup.</summary> * <param name = "_groupID">The unique identifier of the ShapeGroup to affect</param> * <param name = "_deltaTime">The duration, in seconds, that the group's blendshapes should be disabled</param> * <param name = "_moveMethod">The interpolation method by which the blendshapes are affected (Linear, Smooth, Curved, EaseIn, EaseOut, CustomCurve)</param> * <param name = "_timeCurve">If _moveMethod = MoveMethod.CustomCurve, then the transition speed will be follow the shape of the supplied AnimationCurve. This curve can exceed "1" in the Y-scale, allowing for overshoot effects.</param> */ public void DisableAllKeys(string _groupLabel, float _deltaTime, MoveMethod _moveMethod, AnimationCurve _timeCurve) { ShapeGroup shapeGroup = GetGroup(_groupLabel); if (shapeGroup != null) { shapeGroup.SetActive(-1, 0f, _deltaTime, _moveMethod, _timeCurve); } }