| layerIndex | The layer's index. |
Gets the list of AnimatorClipInfo currently played by the current state.
Note that the API that replaces this deprecated method, GetCurrentAnimatorClipInfo, has a different return type.
When upgrading usage of this API, remember that an array of AnimatorClipInfo objects is now returned:
Animator animator = gameObject.GetComponent<Animator> ();
foreach (var nextClipInfo in animator.GetCurrentAnimatorClipInfo(0)) {
//do something with nextClipInfo
}