Version: 2017.3

Animator.GetCurrentAnimatorStateInfo

Switch to Manual
public AnimatorStateInfo GetCurrentAnimatorStateInfo (int layerIndex);

Parameters

layerIndex The layer index.

Returns

AnimatorStateInfo An AnimatorStateInfo with the information on the current state.

Description

Returns an AnimatorStateInfo with the information on the current state.