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. GetAnimationClips(Animation) is obsolete and has been replaced with GetAnimationClips(GameObject).

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


Did you find this page useful? Please give it a rating: