This version of Unity is unsupported.

AnimationUtility.GetAnimationClips

Obsolete GetAnimationClips(Animation) is deprecated. Use GetAnimationClips(GameObject) instead.

Declaration

public static AnimationClip[] GetAnimationClips(Animation component);

Declaration

public static AnimationClip[] GetAnimationClips(GameObject gameObject);

Description

Retrieves an array of animation clips associated with a GameObject or component.

This method retrieves animation clips from the Animator or Animation component. This method works with any component that has implemented the IAnimationClipSource interface.