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)); }
public Transition <float> CreateTransition(float duration) => BlendShapeClipChanger.CreateTransition().AddKey(Weight, duration).Hold();