Version: 2017.3

Animator.GetNextAnimatorClipInfo

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

Parameters

layerIndex The 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

layerIndex The layer index.
clips The list of AnimatorClipInfo to fill.

Description

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