public static PlayableHandle PlayClip(Animator animator, AnimationClip clip, out PlayableGraph graph) { graph = PlayableGraph.CreateGraph(); AnimationPlayableOutput animationPlayableOutput = graph.CreateAnimationOutput("AnimationClip", animator); PlayableHandle playableHandle = graph.CreateAnimationClipPlayable(clip); animationPlayableOutput.sourcePlayable = playableHandle; graph.SyncUpdateAndTimeMode(animator); graph.Play(); return(playableHandle); }