public void PreviewFacialAnimation(FacialAnimationClip animationClip, float previewTime) { if (animationClip != null) { this.CurrentClipName = animationClip.AnimationName; //Make sure the channels we added are bound to their transforms. (the actual thing they are to animate) animationClip.BindAllChannels(this.animationTransforms); //Set clip state to playing, it now awaits update calls. animationClip.PlayAnimation(1f, 0f, previewTime); //Update all transforms to show the frame specified in previewTime. animationClip.UpdateFrame(); } else { Debug.LogError("Cannot preview animation clip"); } }