Version: 2017.3

Animator.GetNextAnimatorStateInfo

Switch to Manual
public AnimatorStateInfo GetNextAnimatorStateInfo (int layerIndex);

Parameters

layerIndex The layer index.

Returns

AnimatorStateInfo An AnimatorStateInfo with the information on the next state.

Description

Returns an AnimatorStateInfo with the information on the next state.