Version: 2020.2

Animator.GetNextAnimatorStateInfo

Switch to Manual
public AnimatorStateInfo GetNextAnimatorStateInfo (int layerIndex);

Parameters

layerIndexThe layer index.

Returns

AnimatorStateInfo An AnimatorStateInfo with the information on the next state.

Description

Returns an AnimatorStateInfo with the information on the next state.