示例#1
0
            Transition <float> CreateBlinkTransition()
            {
                var partCloseDuration = param.closeDuration / 4;
                var partOpenDuration  = param.openDuration / 4;

                return(BlendShapeClipChanger.CreateTransition()
                       .AddKey(param.ratioHalf * TightnessCollection, partCloseDuration)
                       .AddKey(param.ratioClose * TightnessCollection, partCloseDuration)
                       .AddKey(param.ratioHalf * TightnessCollection, partOpenDuration)
                       .AddKey(0, partOpenDuration));
            }
示例#2
0
 public Transition <float> CreateTransition(float duration) => BlendShapeClipChanger.CreateTransition().AddKey(Weight, duration).Hold();