Detect when Any State is used

Hello everyone!

I would like to detect when my Animator is passing by Any State, something like this:

using UnityEngine;

public class AnimatorTest : MonoBehaviour
{
    public Animator Animator;

    private void Start()
    {
        Animator.OnAnyState += OnAnyState;
    }

    private void OnAnyState()
    {
        Debug.Log("The Animator just passed by the Any State.");
    }
}

Do you know if there is a way to know that?

Nope, that’s just one of the many things you can’t do if you use the Animator Controller system.