Animator, Clips length

I understand this line can get you the float of the current animation length

Animator.GetCurrentAnimatorStateInfo(0).length

but how would you get the float of a animation you just called… like this?

Animator.SetTrigger("Attack3");
Invoke("AttackFalse",Animator.GetCurrentAnimatorStateInfo(0).length);

when you just called a trigger and the animation is on transition…

this must be pretty basic but I cant find the solution… thanks

I think this is what you’re seeking:

You stick those events into your animations and they fire when the animation reaches that point.