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

Parameters

animator Target Animator.
clip The AnimationClip to create an AnimationClipPlayable for.
graph The 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.