Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetCurrentAnimatorClipInfo

Returns an array of all the AnimatorClipInfo in the current state of the given layer.
Read time 1 minuteLast updated 7 days ago

Definition

GetCurrentAnimatorClipInfo(int)

Returns an array of all the AnimatorClipInfo in the current state of the given layer.
public AnimatorClipInfo[] GetCurrentAnimatorClipInfo(int layerIndex)

Parameters

layerIndex

The layer index.

Returns

Type

Description

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

GetCurrentAnimatorClipInfo(int, List<AnimatorClipInfo>)

Returns an array of all the AnimatorClipInfo in the current state of the given layer.
public void GetCurrentAnimatorClipInfo(int layerIndex, List<AnimatorClipInfo> clips)

Parameters

layerIndex

The layer index.