Exemplo n.º 1
0
        public void AddFromClips(GameObject animatorRoot, IEnumerable <AnimationClip> clips)
        {
            if (Application.isPlaying)
            {
                return;
            }

            AnimationPreviewUtilities.PreviewFromCurves(animatorRoot, AnimationPreviewUtilities.GetBindings(animatorRoot, clips));
        }
Exemplo n.º 2
0
 // call to reset caches. should be called when switching master timelines
 public void Clear()
 {
     m_ObjectStack.Clear();
     AnimationPreviewUtilities.ClearCaches();
 }