Animator.GetCurrentAnimatorStateInfo
GetCurrentAnimatorStateInfo(layerIndex: int): AnimatorStateInfo;
Parameters

layerIndex The layer's index.
Description

Gets the current State information on a specified AnimatorController layer.