Version: 2020.2

Animator.GetNextAnimatorClipInfo

Switch to Manual
public AnimatorClipInfo[] GetNextAnimatorClipInfo (int layerIndex);

Parameters

layerIndexThe layer index.

Returns

AnimatorClipInfo[] An array of all the AnimatorClipInfo in the next state.

Description

Returns an array of all the AnimatorClipInfo in the next state of the given layer.


public void GetNextAnimatorClipInfo (int layerIndex, List<AnimatorClipInfo> clips);

Parameters

layerIndexThe layer index.
clipsThe list of AnimatorClipInfo to fill.

Description

Fills clips with the list of all the AnimatorClipInfo in the next state of the given layer.