文档

Unity Engine


User Manual

Script Reference

Unity Engine


GetCurrentAnimatorClipInfo

Returns an array of all the AnimatorClipInfo in the current state of the given layer.
阅读时间1 分钟最后更新于 24 天前

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.