private void Awake() { AnimatorPlayable = AnimatorPlayable.alloc(gameObject.name, GetComponent <Animator>()); AnimatorPlayable.Play(); AnimatorPlayableComponentContainer.AnimatorPlayableComponents.Add(this); }