I’m trying to find out when a specific transition is happening but no luck.
Here’s the code:
public Animator anim;
if(anim.GetAnimatorTransitionInfo(0).IsName("LOCOMOTION -> JUMP"))
{
Debug.Log("jump transition");
}
I only have 1 layer so that’s not the problem and the argument is based on the format example provided in the unity references (“CURRENT_STATE → NEXT_STATE”).
I have also tried every combination of I could think of including “BASE_LAYER.LOCOMOTION->BASE_LAYER.JUMP”.
Can any one help?