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?