public void AddFromClips(GameObject animatorRoot, IEnumerable <AnimationClip> clips) { if (Application.isPlaying) { return; } AnimationPreviewUtilities.PreviewFromCurves(animatorRoot, AnimationPreviewUtilities.GetBindings(animatorRoot, clips)); }
// call to reset caches. should be called when switching master timelines public void Clear() { m_ObjectStack.Clear(); AnimationPreviewUtilities.ClearCaches(); }