Hello,
I would like to know how can I use the new Playable API to load an AnimationClip at RunTime by script within an Animator.
I tried this so far :
PlayableGraph playableGraph = animator.playableGraph;
//clip variable is an AnimationClip
playable = AnimationClipPlayable.Create(playableGraph, clip);
animator.playableGraph.Play();
This code give me “Assertion failed” errors that say :
“In order to call GetTransformInfoExpectUpToDate, RendererUpdateManager.UpdateAll must be called first.”
So what is the good way to load dynamically these AnimationClipPlayable (using Unity 2017.1.0f3).
Thanks for your help.