Version: 5.3
Removed
GetCurrentAnimationClipState is obsolete. Use GetCurrentAnimatorClipInfo instead (UnityUpgradable) -> GetCurrentAnimatorClipInfo(*)

Animator.GetCurrentAnimationClipState

매뉴얼로 전환
public AnimationInfo[] GetCurrentAnimationClipState (int layerIndex);

파라미터

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
}