This version of Unity is unsupported.

Animator.GetNextAnimatorClipInfo

Switch to Manual

Declaration

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.


Declaration

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.