public static Animations.AnimationClipPlayable PlayClip (Animator animator, AnimationClip clip, out Playables.PlayableGraph graph);

Parameters

animatorTarget Animator.
clipThe AnimationClip to create an AnimationClipPlayable for.
graphThe created PlayableGraph.

Returns

AnimationClipPlayable A handle to the newly-created AnimationClipPlayable.

Description

Creates a PlayableGraph to be played on the given Animator. An AnimationClipPlayable is also created for the given AnimationClip.