private void Awake() { PlayableGraph = PlayableGraph.Create("Animation Graph"); RootNode = new MixerNode(); RootNode.CreatePlayable(PlayableGraph); PlayableOutput = AnimationPlayableOutput.Create(PlayableGraph, "Animation Output", GetComponent <Animator>()); PlayableOutput.SetSourcePlayable(RootNode.Playable); PlayableOutput.SetAnimationStreamSource(AnimationStreamSource.DefaultValues); PlayableGraph.Play(); }